Menu

[83373b]: / examples / structure1  Maximize  Restore  History

Download this file

6 lines (5 with data), 245 Bytes

#!/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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.