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 ]
  • To: "Al Snell" <alaric@alaric-snell.com>,"The Deviants" <xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] XML Parsing using DOM parser
  • From: "Srinivas Pandrangi" <srinivas@ipedo.com>
  • Date: Wed, 2 Jan 2002 11:23:31 -0800
  • Thread-index: AcGTvF25Zrdd2UVLSNKh9uai9BUlcgABUH7g
  • Thread-topic: [xml-dev] XML Parsing using DOM parser

A persistent DOM (PDOM) implementation will be a nice solution for your
problem. With PDOM you should be able to parse an XML document once,
store its parsed state, index the document and access it using the DOM
API, without having the entire document in memory. There are a few
implementations around, including ours (Ipedo).

Good luck,

--Srinivas

-----Original Message-----
From: Al Snell [mailto:alaric@alaric-snell.com]
Sent: Wednesday, January 02, 2002 10:35 AM
To: The Deviants
Subject: 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


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>





 

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

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