From: Miroslav Nachev <miro@sp...> - 2005-06-22 09:23:51
I would like to ask why the XML in Artefaktur is not based on
Apache Xalan-C++ & Xerces-C++ ? These are most popular Java versions
of XML realizations and all Java programs which use XML very easy will
be ported to Artefaktur.
From: Roger Rene Kommer <kommer@ar...> - 2005-06-22 15:12:09
I would like to ask why the XML in Artefaktur is not based on Apache
Xalan-C++ & Xerces-C++ ? These are most popular Java versions of XML
realizations and all Java programs which use XML very easy will be =
ACDK includes two implementation for the org::xml:sax and org:w3c::dom
interfaces: expat with a lightweight non-validating parser
And libxml2 as validating parser including xpath support.
It is also possible to add more implementation for the org::xml:sax and
org:w3c::dom, like Xalan/Xerces.
There reason, why I preferred to use the Xerces/Xalan implementation:
- Code size and license will not allow to include the Xerces/Xalan
implementation in the acdk distribution.=20
The current acdk_xml should compile on all platform without any need =
download/compile/link external libraries.
- Xerces/Xalan is rather heavy-weight. It provides own String and =
solution and it would be necessary
to copy these strings and container in memory from/to ACDK and
Xerces/Xalan String/Container versions.
- Xerces-C++ provides its own object C++ hierarchy. It is quite =
wrap an existent object hierarchy
with another. Casting from a base object to a derived object (like =
Element) will be a quite difficult
thing. Wrapping an C++ object hierarchy on a (implicit) C hierarchy is =
the opposite quite easy.
I don't say it is impossible to use Xerces/Xalan as XML implementation =
wrap it with ACDK object model, but
it has several pitfalls.
[mailto:acdk-developer-admin@...] Im Auftrag von =
Gesendet: Mittwoch, 22. Juni 2005 11:23
Betreff: [Acdk-developer] Apache Xalan-C++ & Xerces-C++ in Artefaktur
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies =
IBM. Find simple to follow Roadmaps, straightforward articles, =
Webcasts and more! Get everything you need to get up to speed, fast.
Acdk-developer mailing list