Hi,
Yes, we had multiple xml parsing backends and were pleased with it at the
time.
The KDOM code is here:

http://websvn.kde.org/trunk/kdenonbeta/kdom/

The relevant code is in backends/ and parser/.
You can request a parser using KDOMParserFactory depending on the
requirements (qdom couldnt handle all options). Every parser has access to
the same DocumentBuilder to build the Document, the builder basically builds
using the normal SAX2 calls. The builder keeps track of the node stack too
while the doc is built. The backends just call these methods and do not need
to keep track of the document. Both sync and async are supported, at least
for libxml2. IIRC it was partly inspired by DocumentBuilder being in DOM3
(LS?) spec. The parameter setting parts are KDE specific and the
architecture may be too complex (I think the parsers are dynamically loaded)
so I don't know if it fits, but hopefully it can be a reference.
Cheers,

Rob.

On 28/07/07, David Hyatt <[EMAIL PROTECTED]> wrote:
>
> Didn't KDOM have an XML parsing abstraction?  Would that be worth
> studying?
>
> dave
>
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to