Donate Share

XMLStarlet command line XML toolkit

Code

Programming Languages: C

License: MIT License

Repositories

browse code, statistics, last commit on 2005-07-17 cvs -d:pserver:anonymous@xmlstar.cvs.sourceforge.net:/cvsroot/xmlstar login

cvs -z3 -d:pserver:anonymous@xmlstar.cvs.sourceforge.net:/cvsroot/xmlstar co -P modulename

Show:

What's happening?

  • Syntax Highlighting

    Is there any way to do syntax highlighting with xmlstarlet?.

    2009-11-10 15:43:58 UTC by ajmas

  • Does canonicalization work?

    So I am working on an XML digital signature tool for Perl using this as the core library for that utility. However, when I execute the command to canonicalize the XML prior to computing my digest I don't see much of a change to the format. I do see that elements like this: <foo /> Are properly converted to: <foo></foo> But I don't see any changes to whitespace...

    2009-10-23 18:15:52 UTC by byrnereese

  • XMLStarlet cannot process too big file

    We use this tool process one big xml file(more than 1G), command fails with error and core file.

    2009-10-14 02:44:35 UTC by nobody

  • Followup: RE: combining sel and ed commands

    +1 Surely there shoudl be a -sort mode available for the xml ed mode, prefereably with the ability to take multiple xpaths.

    2009-09-30 16:26:34 UTC by gilescope

  • Followup: RE: Sorting on Multiple Elements

    You could concaternate the values that you'd like to sort on for text (with a deliminator), though this would not work for numbers. xml ls | xml sel -t -m "//f" -s A:N:U "concat(@a,concat('|',@m))" -c ".".

    2009-09-30 16:21:58 UTC by gilescope

  • preserve original formatting/spaces don't work

    The options --pf (preserve original formatting) and --ps (preserve non-significant spaces) only work partially. Any tag which has line breaks between attributes is collapsed on a single line. See example before and after. xmlstarlet ed --pf --ps -u "/server/mbean/@code" -v org.mobicents.servlet.sip.startup.jboss.JBossSip before.xml >after.xml.

    2009-09-14 11:11:58 UTC by alain_knaff

  • help needed to edit a document

    Hi, I'm trying to convert "relativ links" of an xhtml document into "absolute links". I.e. for each href value that does not contains the pattern '://' I insert the string "$BASEURL" : xmlstarlet ed -i '//*/a[not(contains(@href,"://"))]/@href' -t text -n foo -v $BASEURL main.xhtml Unfortunately, it does not work at all... Could you please...

    2009-09-10 15:10:49 UTC by clohr

  • ignore namespace

    --ignore-ns option would help a lot ! Currently, the command is almost unusable with XML document having namespaces ... too verbose !

    2009-08-21 14:51:21 UTC by kerphi

  • selection based on optional tags

    Here's a simple "xml" file ... <Data> <Set> <Name>fast_speed_tag</Name> <Speed>fast</Speed> </Set> <Set> <Name>without_speed_tag</Name> </Set> <Set> <Name>slow_with_speed_tag</Name> <Speed>slow</Speed> </Set> </Data> I want to...

    2009-08-12 15:10:14 UTC by dstyer

  • Update question

    Hello, I have a question about updating the value of a node. My XML File looks like this: <?xml version="1.0"?> <gpx version="1.0" creator="someone"> <time>sometime</time> <name>somename</name> <desc>somedescription</desc> <trk> <trkseg> <trkpt lat="47.255855"...

    2009-07-31 21:00:19 UTC by zerealkiller

Our Numbers