OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS