Menu

#47 add #xmlstarlet sel -f<n>

open
nobody
min depth (1)
5
2015-02-25
2015-02-25
bob
No

Add a -f<n> option to the sel feature to print only lines from depth N. the goal would be to print lines from depth 1 to depth 2 by combining -f1 and -d2. This could be usefull to print iteratively the elements of an xml file in order to generate the structure of a splitted xsd file. for instance the root and its first dependencies (-f0 -d1), then the first level and its first dependencies (-f1 -d1). Thank you in advance.

Discussion

  • bob

    bob - 2015-02-25

    read -f1 -d2 in the last example.

     
  • bob

    bob - 2015-02-25

    read add #xmlstarlet el -f<n> !

     

Log in to post a comment.

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.