Fwd: Re: How to extract untranslated XML from a stream

kumar qnx <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
  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 <[email protected]> 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
[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.