XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Perl and XML on the Command Line
Subject: Thanks
Date: 2003-09-14 20:43:42
From: Mikhail Grushinskiy
Response to: Thanks

You might also take a look at this one (XmlStarlet Command Line XML Toolkit)


http://xmlstar.sourceforge.net/


The toolkit's feature set includes options to:



Check or validate XML files (simple well-formedness check, DTD, XSD, RelaxNG)


Calculate values of XPath expressions on XML files (such as running sums, etc)


Search XML files for matches to given XPath expressions


Apply XSLT stylesheets to XML documents (including EXSLT support, and passing parameters to stylesheets)


Query XML documents (ex. query for value of some elements of attributes, sorting, etc)


Modify or edit XML documents (ex. delete some elements)


Format or "beautify" XML documents (as changing indentation, etc)


Fetch XML documents using http:// or ftp:// URLs


Browse tree structure of XML documents (in similar way to 'ls' command for directories)


Include one XML document into another using XInclude


XML c14n canonicalization


Escape/unescape special XML characters in input text


Print directory as XML document


Convert XML into PYX format (based on ESIS - ISO 8879)


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First
  • xml starlet
    2006-09-25 11:56:16 daczkowski [Reply]

    I'm new at xmlstarlet. I'm running under windows XP.
    I used the following line to edit the value of @filename attribute.
    xml ed -u "/KLAMATH/ENCODESESSION/MEDIAOUTPUT/FILEMEDIA/@filepath" -v c:/wd_tel2 eos3dr1_device0_drc1500.prj


    The output indicates that the attribute value has changed. However the original file did not change. How do I save my changes that I made via the xml ed commmand?


    Can you help or direct me to some info?


    Thanks

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938