xq icon indicating copy to clipboard operation
xq copied to clipboard

Like jq, but for XML and XPath.

Results 9 xq issues
Sort by recently updated
recently updated
newest added

this looks discontinued, check out faq instead: https://github.com/jzelinskie/faq/

jq is far far more versatile

What's the license for code in this repo?

How is this supposed to work? I only get ``` ``` no matter what xpath i try. The only expressions that seem to work are "." and "*". It's a...

this is similar to `jq -r`. When I need to parse XML, I often want to quickly extract some element.

When `... | xq "//some/node/text()"` the output is: ```xml sometext ``` Should exist an option, like `-r/--raw` to output text only. This is important because it prevents piping the output...

```sh http get http://br-rss.jeffbr13.net/rss/ | xq '//item/itunes:duration' # Traceback (most recent call last): # File "/Users/ben/.virtualenvs/br-rss/bin/xq", line 11, in # sys.exit(main()) # File "/Users/ben/.virtualenvs/br-rss/lib/python3.6/site-packages/xq/__main__.py", line 54, in main # sys.stdout.write(apply_xpath(args.file,...

It appears that `xq` does support XML to JSON conversion, but only if you supply a file with a `.json` extension. Is there a way to print the output to...