If you have the memory then why not just build a DOM tree on the fly?
Just modify the code to create DOMNodes instead of writing to file.
/ Erik
-----Original Message-----
From: jiang lei [mailto:[EMAIL PROTECTED]]
Sent: den 29 januari 2003 13:10
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: how to extract xml fragments while parsing with SAX
Hi Erik,
Thanks for your response. It's very helpful.
However, I think the performance could be improved if we don't print the
parsed tags into a buffer first and parse them again using another parser.
BTW, I think we might be able to make MemBufFormatTarget Class a little
faster if we use 'realloc()' instead of 'new', 'delete', and 'memcpy()'. I
do hope they will add this feture the next time.
Best Regards
Lei
----- Original Message -----
From: "Erik Rydgren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 7:05 PM
Subject: RE: how to extract xml fragments while parsing with SAX
...
> For the parsing functionality take a look at the SAXPrint example (it uses
> SAXPrintHandlers but without tagfilters. It writes the whole document).
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]