From f6fad90a48ab579de5cf327f29d566590945ce6f Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Thu, 2 Mar 2023 11:22:04 +1100 Subject: [PATCH] v4.31.2 --- usage/xml.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/usage/xml.md b/usage/xml.md index 29a2b585..3d85a4ff 100644 --- a/usage/xml.md +++ b/usage/xml.md @@ -407,8 +407,10 @@ A best attempt is made to copy comments to xml. Given a sample.yml file of: ```yaml +# # header comment # above_cat +# cat: # inline_cat # above_array array: # inline_array @@ -425,9 +427,11 @@ yq -o=xml '.' sample.yml will output ```xml +header comment +above_cat +--> + + val1 val2 @@ -489,7 +493,8 @@ yq -p=xml -o=xml '.' sample.xml ``` will output ```xml - + + 3