kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.57k stars 82 forks source link

Possible special character bug #105

Closed mvrozanti closed 3 years ago

mvrozanti commented 3 years ago

When this xml is read by yq with curl -s http://feeds.bbci.co.uk/news/rss.xml | yq, it outputs the following error:

yq: Error running jq: ScannerError: mapping values are not allowed here
  in "<stdin>", line 15, column 38.

Maybe it's having it with the ! exclamation mark in there? I'm just guessing. That xml should be valid.

kislyuk commented 3 years ago

The yq utility does not accept XML input. You need to pipe your XML to xq instead (which is bundled with yq).