| 1 |
#!/bin/sh |
| 2 |
# Print structure of XML element using xml sel (advanced XPath expressions and xml sel command usage) |
| 3 |
./xmlstarlet sel -T -t -m '//*' \ |
| 4 |
-m 'ancestor-or-self::*' -v 'name()' -i 'not(position()=last())' -o . -b -b -n \ |
| 5 |
xml/structure.xml |