Discussed in #1721
Originally posted by elandorr July 8, 2023
Hi
is it possible to keep the ns here?
<?xml version="1.0" encoding="UTF-8"?>
<foo>
<title>barfoo</title>
<macroni:title>foobar</macroni:title>
</foo>
The macroni is lost.
+p_xml: version="1.0" encoding="UTF-8"
foo:
title:
- barfoo
- foobar
I have a file that uses such a format, which means this borks:
yq -pxml -oy '.foo.title' fooo.xml
- barfoo
- foobar
Ideally it would only show the <title>.
Appreciate yq, really useful, thanks!
Discussed in #1721
Originally posted by elandorr July 8, 2023
Hi
is it possible to keep the ns here?
The
macroniis lost.I have a file that uses such a format, which means this borks:
Ideally it would only show the
<title>.Appreciate yq, really useful, thanks!