Re: Expat-discuss Digest, Vol 113, Issue 3

"jimmy Zhang" <[email protected]> Wed, 23 Sep 2009 12:26:35 -0700
Newsgroups gmane.text.xml.expat.general
Message-ID <01b301ca3c83$c4773710$0402a8c0@your55e5f9e3d2>
why don't you just use xpath?
/tag1[@attribute=value]/tag2[@attribute=value]/text()
----- Original Message ----- 
From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 23, 2009 3:00 AM
Subject: Expat-discuss Digest, Vol 113, Issue 3


> Send Expat-discuss mailing list submissions to
> [email protected]
> 
> 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
> [email protected]
> 
> You can reach the person managing the list at
> [email protected]
> 
> 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 <[email protected]>
> To: [email protected]
> Subject: [Expat-discuss] A small tool 'Xml2Line' using 'libexpat'
> (Need some comments)
> Message-ID: <[email protected]>
> 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
> [email protected]
> http://mail.libexpat.org/mailman/listinfo/expat-discuss
> 
> 
> End of Expat-discuss Digest, Vol 113, Issue 3
> *********************************************
>