diff options
Diffstat (limited to 'examples/structure1')
-rw-r--r-- | examples/structure1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/structure1 b/examples/structure1 new file mode 100644 index 0000000..13884e7 --- /dev/null +++ b/examples/structure1 @@ -0,0 +1,5 @@ +#!/bin/sh +# Print structure of XML element using xml sel (advanced XPath expressions and xml sel command usage) +./xmlstarlet sel -T -t -m '//*' \ +-m 'ancestor-or-self::*' -v 'name()' -i 'not(position()=last())' -o . -b -b -n \ +xml/structure.xml |