
What's a simple way to extract XML values with little memory use or dependencies? I just need to extract a single value at a fixed place in the XML schema and I need to do it on an embedded Linux system that doesn't have much installed. It's got the basics (Perl, shell, etc) so any common script should work. Any suggestions? PS my backup plan is sed... -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ -- Sent from my Samsung Galaxy Note 2 with K-9 Mail.

On Thu, 4 Sep 2014 07:48:02 PM Russell Coker wrote:
I just need to extract a single value at a fixed place in the XML schema and I need to do it on an embedded Linux system that doesn't have much installed. It's got the basics (Perl, shell, etc) so any common script should work.
Never tried it, but how about this? http://infra.slu.se/jensl/xmlclitools/ There's also an xml_grep packaged in Debian that is Perl based, but that seems like it returns an XML file based on an XPATH expression. Good luck! Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
participants (2)
-
Chris Samuel
-
Russell Coker