mirror of
https://github.com/wader/fq.git
synced 2024-11-28 03:02:55 +03:00
9a5fcc89f1
Also more context in error messages and refactor trim function
13 lines
342 B
Plaintext
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": ""
|
|
}
|