yq/pkg/yqlib/doc/usage/headers/xml.md

8 lines
358 B
Markdown
Raw Normal View History

2021-12-21 04:02:07 +00:00
# XML
2021-12-21 05:52:54 +00:00
Encode and decode to and from XML. Whitespace is not conserved for round trips - but the order of the fields are.
2021-12-21 04:02:07 +00:00
2021-12-21 05:52:54 +00:00
Consecutive xml nodes with the same name are assumed to be arrays.
2021-12-21 04:02:07 +00:00
2022-01-22 01:35:33 +00:00
XML content data and attributes are created as fields. This can be controlled by the `'--xml-attribute-prefix` and `--xml-content-name` flags - see below for examples.