[bug-notifications] [xmlstarlet 0004644]: Multiple options (-a -u) not supported in element mode
Mantis Bug Tracker
noreply at opencsw.org
Mon May 30 20:07:16 CEST 2011
A NOTE has been added to this issue.
======================================================================
https://www.opencsw.org/mantis/view.php?id=4644
======================================================================
Reported By: skayser
Assigned To: dam
======================================================================
Project: xmlstarlet
Issue ID: 4644
Category: regular use
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
======================================================================
Date Submitted: 2010-12-21 17:52 CET
Last Modified: 2011-05-30 20:07 CEST
======================================================================
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/)
======================================================================
----------------------------------------------------------------------
(0009094) skayser (administrator) - 2011-05-30 20:07
https://www.opencsw.org/mantis/view.php?id=4644#c9094
----------------------------------------------------------------------
Filed upstream
https://sourceforge.net/tracker/index.php?func=detail&aid=3309383&group_id=66612&atid=515106
More information about the bug-notifications
mailing list