Mantis - xmlstarlet
Viewing Issue Advanced Details
4644 regular use minor always 2010-12-21 17:52 2011-06-15 14:16
skayser  
dam  
normal  
feedback  
open  
none    
none  
0004644: Multiple options (-a -u) not supported in element mode
I am hitting errors when trying to use multiple options (-u and -a) in element mode with 1.0.2. On their own, these option do work, combining them (which I would like to do to reduce output) doesn't seem to be possible though.

$ xmlstarlet el -u config.xml
UserScriptConfig
UserScriptConfig/Script
UserScriptConfig/Script/Include

$ xmlstarlet el -a config.xml
UserScriptConfig
UserScriptConfig/Script
UserScriptConfig/Script/@filename
UserScriptConfig/Script/@name
UserScriptConfig/Script/@namespace
...

$ xmlstarlet el -u -a config.xml
I/O warning : failed to load external entity "-a"
$ xmlstarlet el -u -a config.xml
I/O warning : failed to load external entity "-a"
$ xmlstarlet el -ua config.xml
XMLStarlet Toolkit: Display element structure of XML document
Usage: xml el [<options>] <xml-file>
where
  <xml-file> - input XML document file name (stdin is used if missing)
  <options> is one of:
  -a - show attributes as well
  -v - show attributes and their values
  -u - print out sorted unique lines
  -d<n> - print out sorted unique lines up to depth <n>

XMLStarlet is a command line toolkit to query/edit/check/transform
XML documents (for more information see http://xmlstar.sourceforge.net/) [^]
$ pkgparam CSWxmlstarlet VERSION
1.0.2,REV=2010.04.17
Issue History
2010-12-21 17:52 skayser New Issue
2011-01-11 17:02 dam Note Added: 0008697
2011-01-11 17:02 dam Assigned To => dam
2011-01-11 17:02 dam Status new => feedback
2011-05-30 20:07 skayser Note Added: 0009094
2011-06-15 14:16 dam Note Added: 0009118

Notes
(0008697)
dam   
2011-01-11 17:02   
Please report errors only concerning upstream at the SF website:
  https://sourceforge.net/tracker/?group_id=66612&atid=515106 [^]
xmlstarlet now has more upstream developers working on functional fixes.
(0009094)
skayser   
2011-05-30 20:07   
Filed upstream

https://sourceforge.net/tracker/index.php?func=detail&aid=3309383&group_id=66612&atid=515106 [^]
(0009118)
dam   
2011-06-15 14:16   
Moved

https://sourceforge.net/tracker/?func=detail&aid=3309383&group_id=66612&atid=515109 [^]