1
1
mirror of https://github.com/wader/fq.git synced 2024-11-28 03:02:55 +03:00
fq/format/xml/testdata/trailing.fqtest
Mattias Wadman 9a5fcc89f1 xml: Allow trailing <?procinstr?>
Also more context in error messages and refactor trim function
2022-08-11 23:48:29 +02:00

13 lines
342 B
Plaintext

$ fq -n '"<a></a> trailing" | fromxml'
exitcode: 5
stderr:
error: error at position 0x7: root element has trailing non-whitespace " trailing"
$ fq -n '"<a></a> <trailingelm>" | fromxml'
exitcode: 5
stderr:
error: error at position 0x8: root element has trailing element <trailingelm>
$ fq -n '"<a></a> <?procinstr?>" | fromxml'
{
"a": ""
}