go-pkg-xmlx

This package wraps the standard XML library and uses it to build a node tree of any document you load. This allows you to look up nodes forwards and backwards, as well as perform simple search queries. Nodes now simply become collections and don't require you to read them in the order in which the xml.Parser finds them. The Document currently implements 2 search functions which allow you to look for specific nodes. SelectNode() returns the first, single node it finds matching the given name and namespace. SelectNodes() returns a slice containing all the matching nodes (without recursing into matching nodes). SelectNodesRecursive() returns a slice of all matching nodes, including nodes inside other matching nodes. Note that these search functions can be invoked on individual nodes as well. This allows you to search only a subset of the entire document.

OTHER License

Stars
5

Issue Statistics

Past Year

All Time

Total Pull Requests
0
0
Merged Pull Requests
0
0
Total Issues
0
0
Time to Close Issues
N/A
N/A
Package Rankings
Top 6.81% on Proxy.golang.org