[bug-notifications] [xmlstarlet 0004644]: Multiple options (-a -u) not supported in element mode

Mantis Bug Tracker noreply at opencsw.org
Tue Dec 21 17:52:19 CET 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4644 
====================================================================== 
Reported By:                skayser
Assigned To:                
====================================================================== 
Project:                    xmlstarlet
Issue ID:                   4644
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-12-21 17:52 CET
Last Modified:              2010-12-21 17:52 CET
====================================================================== 
Summary:                    Multiple options (-a -u) not supported in element
mode
Description: 
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/)

======================================================================



More information about the bug-notifications mailing list