We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
comment at top of yaml produced by yq considered invalid by yq
yq --version yq (https://github.com/mikefarah/yq/) version v4.30.8
sample.xml contents contains an xml comment on the second line below xml version declaration
yq -p=xml sample.xml | yq -o=xml Error: xml: EncodeToken of ProcInst xml target only valid for xml declaration, first token encoded
The text was updated successfully, but these errors were encountered:
Hmm I see - I'll look into this - although regardless I recommend running the command like so (which does work)
yq -p=xml -o=-xml sample.xml
Also - for next time can you please dump the xml contents in a code block instead of an image - can copy paste text from an image :)
Sorry, something went wrong.
Yes, "yq -p=xml -o=-xml sample.xml" works.. but... ?!?! it's kinda degenerate. I want the the intermediate yaml. Did I fail to detect sarcarsm?
...it's a workaround till I get free personal time to work on the open-source project...feel free to raise a PR if you would like it sooner
Fixed xml encoding of ProcInst #1563, improved XML comment handling
2195df9
Fixed in v4.31.2
No branches or pull requests
comment at top of yaml produced by yq considered invalid by yq
yq --version
yq (https://github.com/mikefarah/yq/) version v4.30.8
sample.xml contents contains an xml comment on the second line below xml version declaration
yq -p=xml sample.xml | yq -o=xml
Error: xml: EncodeToken of ProcInst xml target only valid for xml declaration, first token encoded
The text was updated successfully, but these errors were encountered: