Sbowman/xq - GitHub
xq
A simple XML parser that exposes the https://github.com/antchfx/xmlquery to the command line. Use XPath queries to search for information in XML documents, or execute basic XPath expressions to convert data.
Find
To search for elements, use the --find command:
cat sample.xml | ./xq --find '//MyElement[@someattr="abc"]'Exec
To execute an XPath expression, use the --exec command:
cat sample.xml | ./xq --exec 'count(//MyElement)' cat sample.xml | ./xq --exec 'sum(//MyElement@bytesDependencies
This app is really just a simple CLI wrapper around these two great Go XML packages:
- https://github.com/antchfx/xpath
- https://github.com/antchfx/xmlquery
Từ khóa » Xq Github
-
Sibprogrammer/xq: Command Line XML Beautifier And ... - GitHub
-
Xq - Like Jq, But For XML And XPath. - GitHub
-
MiSawa/xq: Pure Rust Implementation Of Jq - GitHub
-
Xq/ At Master · Sibprogrammer/xq - GitHub
-
Xq - Command-line XPath Processor For HTML And XML - GitHub
-
Chanwit/xq: Any Configuration Processor - GitHub
-
Xq · GitHub Topics
-
Luolong/xq: Siple Command Line Utility To Filter XML Content - GitHub
-
Go-xq · GitHub Topics
-
Spali/go-xq: XML Query Utility To Extract Xml From A File, Input ... - GitHub
-
- Command-line XML Processor Inspired By `jq` - GitHub
-
Xq/ At Master · Tfussell/xq - GitHub
-
Kislyuk/yq - Jq Wrapper For YAML/XML/TOML Documents - GitHub
-
Mustache - GitHub