File: structure1

package info (click to toggle)
xmlstarlet 1.6.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,656 kB
  • sloc: sh: 4,735; ansic: 4,187; xml: 1,936; makefile: 66; awk: 43
file content (5 lines) | stat: -rwxr-xr-x 245 bytes parent folder | download | duplicates (7)
1
2
3
4
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