Re: [xml-dev] XML Parsing using DOM parser

From
Al Snell <>
To
The Deviants <>
Date
2002-01-02T18:35:01Z
ID
<>
Thread
Re: [xml-dev] XML Parsing using DOM parser
On Wed, 2 Jan 2002, Deepa Venkatesan wrote:

>     I am wondering if any of you have encountered such
> problems and how you went about resolving it. Using
> DOM parser is safe when it comes to maintaining the
> identical XML structure particulary when I need to
> make slight modifications on the original XML. But how
> do I overcome the problem of the HUGE time taken to
> convert the XML into a DOM tree. Any help is
> appreciated.

Always keep it in the DOM tree. Avoid parsing it as much as possible...
the XML serialisation format is a nightmare with all that
delimited-sequences-of-characters stuff that requires running along the
whole thing with a state machine to make any sense of it all, so avoid it!

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software