-
Is there any way to do syntax highlighting with xmlstarlet?.
2009-11-10 15:43:58 UTC by ajmas
-
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
-
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
-
+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
-
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
-
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
-
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-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
-
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
-
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