[Expat-discuss] Expat-discuss Digest, Vol 113, Issue 3

jimmy Zhang jzhang at ximpleware.com
Wed Sep 23 21:26:35 CEST 2009


why don't you just use xpath?
/tag1[@attribute=value]/tag2[@attribute=value]/text()
----- Original Message ----- 
From: <expat-discuss-request at libexpat.org>
To: <expat-discuss at libexpat.org>
Sent: Wednesday, September 23, 2009 3:00 AM
Subject: Expat-discuss Digest, Vol 113, Issue 3


> Send Expat-discuss mailing list submissions to
> expat-discuss at libexpat.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
> or, via email, send a message with subject or body 'help' to
> expat-discuss-request at libexpat.org
> 
> You can reach the person managing the list at
> expat-discuss-owner at libexpat.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Expat-discuss digest..."
> 
> 
> Today's Topics:
> 
>   1. A small tool 'Xml2Line' using 'libexpat' (Need some comments)
>      (Mohan R)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 21 Sep 2009 22:27:33 +0530
> From: Mohan R <mohan43u at gmail.com>
> To: expat-discuss at libexpat.org
> Subject: [Expat-discuss] A small tool 'Xml2Line' using 'libexpat'
> (Need some comments)
> Message-ID: <h98b9t$jup$1 at ger.gmane.org>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi,
> 
> I created a small tool 'Xml2Line'. 'Xml2Line' will take standard input
> and give output in such a way that, other unix filters can easily
> operate on that xml data. The format of Xml2Line will be like below,
> 
>    <tag1 attribute="value">
>      <tag2 attribute="value">data</tag2>
>    </tag1>
> 
>    to
> 
>    tag1[attribute=value]|tag2[attribute=value]{data}
> 
> Here is the source, http://github.com/mohan43u/Xml2Line
> 
> I don't know how much useful this output format is, but like to get
> inputs from the experts to find the best format for other unix line
> commands(especially 'grep') to operate on XML data.
> 
> Waiting for your comments,
> 
> Thanks,
> Mohan R.
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
> 
> 
> End of Expat-discuss Digest, Vol 113, Issue 3
> *********************************************
>


More information about the Expat-discuss mailing list