We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version of yq: 4.26.1 Operating system: linux Installed via: snap
Input XML
ex.xml:
<feed> <entry> <id>b9a1ef89</id> <title> Added NDJSON decoder (#1281) </title> </entry> <entry> <id>c2c48bbe</id> <title> Bumping version </title> </entry> </feed>
Command
❯ cat ex.xml | yq -p xml '.feed.entry[] |= pick(["title"])' Error: cannot pick indicies from type (feed.entry.0)
But this works:
❯ cat ex.xml | yq -p xml . | yq '.feed.entry[] |= pick(["title"])' feed: entry: - title: Added NDJSON decoder (#1281) - title: Bumping version
The text was updated successfully, but these errors were encountered:
Thanks for raising, I can replicate this issue - will have a fix next release
Sorry, something went wrong.
Fixes xml decode missing tags #1284
8c3a8c0
Great! Thanks
Fixed in 4.27.1 :)
No branches or pull requests
Version of yq: 4.26.1
Operating system: linux
Installed via: snap
Input XML
ex.xml:
Command
But this works:
The text was updated successfully, but these errors were encountered: