{"repo":"antchfx/xmlquery","free":true,"listed":false,"github":"https://github.com/antchfx/xmlquery","clone":"git clone https://github.com/antchfx/xmlquery.git","description":"xmlquery is Golang XPath package for XML query.","language":"Go","stars":490,"topics":["xml","xpath","xml-parser","xml-xpath","golang","xml-queries","go"],"license":"MIT","category":"dev-tools","readme_excerpt":"xmlquery Overview xmlquery is an XPath query package for XML documents, allowing you to extract data or evaluate from XML documents with an XPath expression. xmlquery has a built-in query object caching feature that caches recently used XPATH query strings. Enabling caching can avoid recompile XPath expression for each query. You can visit this page to learn about the supported XPath(1.0/2.0) syntax. https://github.com/antchfx/xpath htmlquery - Package for the HTML document query. xmlquery - Package for the XML document query. jsonquery - Package for the JSON document query. Installation Quick Starts Getting Started Find specified XPath query. Parse an XML from URL. Parse an XML from string. Parse an XML from io.Reader. Parse an XML in a stream fashion (simple case without elements filtering). Notes: CreateStreamParser() used for saving memory if your had a large XML file to parse. Parse an XML in a stream fashion (simple case advanced element filtering). Find authors of all books in the bookstore. Find the second book. Find the last book. Find all book elements and only get id attribute. Find all books with id bk104 . Find all books with price less than 5. Evaluate total price of all books. Count the number of books. Calculate the total price of all book prices. Advanced Features Parse UTF-16 XML file with ParseWithOptions() . Query with custom namespace prefix. Create XML document without call xml.Marshal . Output: FAQ Find() vs QueryAll() , which is better? Find and QueryA","default_branch":null,"files":null,"tree":[],"storefront":"/r/antchfx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/antchfx/xmlquery/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}