Re: Reading XML stream using unmanaged c++

Tech-Archive recommends: Fix windows errors by optimizing your registry



The biggest problem with DOM is that it is tree-oriented with each child having a pointer
to its parent. This makes it impossible to create interesting structures such as shared
subtrees. I recently did a truly massive application in XML where we were building
internal hyperlinks to multiple subtrees; this is not possible in DOM. We studied this
problem and the prototype they had built couldn't build the kinds of hyperlinked
structures we needed (the XML ran on a server and we were serving up HTML pages to the
clients). DOM was designed by people who only saw trivial problems. Real problems can't
use it.
joe

On Thu, 16 Nov 2006 14:14:09 GMT, "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx> wrote:

"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:ppjol21b4qupkov9tiodufb7jkqqs6clju@xxxxxxxxxx
I have used the ExPat library to handle XML; the MSXML stuff is rather
complex and if I
recall it is DOM-oriented, which is a really poor design.

I agree with MSXML being complex, but what's wrong with DOM? All the
parsers I've used to date use DOM, and it is great for short XML documents
(the only kind I use).

-- David

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: XmlTextreader versus DOM
    ... I've heard them referred to as "DOM" and "SAX". ... DOM is, generally speaking, the easiest way in which to deal with XML ... "SAX" (named after the original parser, I think) parsers read one XML ...
    (microsoft.public.dotnet.languages.vc)
  • Re: XmlTextreader versus DOM
    ... I've heard them referred to as "DOM" and "SAX". ... DOM is, generally speaking, the easiest way in which to deal with XML ... "SAX" (named after the original parser, I think) parsers read one XML ...
    (microsoft.public.dotnet.xml)
  • XML parse/build metaphor mismatch
    ... XML data in arbitrary order that I'm simply missing. ... It seems to be easy getting stuff -out- of a DOM via XPath, ...
    (comp.text.xml)
  • Re: javascript and XML help
    ... Some Text and html tags ... That is not well-formed XML so any XML parser will give a parse error. ... DOM nodes, it does not help that some of them might have the same tag ...
    (comp.lang.javascript)
  • Re: Java with xml
    ... There are three main XML parsing techniques: ... - Document Object Model (DOM), ... Simple API for XML (SAX), ... built in memory. ...
    (comp.lang.java.programmer)