[Expat-discuss] Fwd: Re: How to extract untranslated XML from a stream
kumar qnx
kumar_qnx at yahoo.com
Fri Nov 17 18:58:04 CET 2006
Hi James,
Can you be more clear in your example, you can obtain all the content within an xml, what do you with the content is upto you. I dont understand by unparsed content ?, is that the data contained within two element pairs ?, if that is the case you should be able to get it in your character handler.
Pavan
James Whetstone <jameswhetstone at comcast.net> wrote:
Hi,
I'm working on a project where, in addition to parsing all the elements in
an XML stream, I need to obtain all the unparsed XML content between 2 tags.
Here's an example:
data
more data
So with this example, I want to extract all the XML content between the
tags and then parse the stream using standard handlers. Can
anyone make some suggestion here or point me in the right direction? Is
this even possible with the API? From what I can tell, it isn't really
designed to extract untranslated XML bytes like this.
The reason I want to do this is because I want to parse the stream and save
the data to a database in two ways: I want to save the data as individual
columns AND as an entire XML document for quick retrieval. Ideally, I'd
like to store the XML document without having to re-copy the content to a
separate buffer.
Thanks,
James
_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
---------------------------------
Sponsored Link
Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo - Calculate new house payment
More information about the Expat-discuss
mailing list