In my last article (XML-J, Vol. 1, issue 3) I made the case for using custom
classes derived from XML Schemas to represent XML documents in C++
applications. That article focused primarily on the problems of generating
XML documents from program objects, and explained how custom classes have
significant advantages over standards like DOM and SAX in terms of
performance, object orientation and maintainability of source code.
Here I'll describe a unique methodology for parsing XML data into C++ classes
that provides all the object-oriented benefits detailed in the first article,
with increased performance (compared to traditional generic XML parsers).
The Problem with Conventional Parsers
C++ programmers have been dealing with parsing technologies for years. Most
of you rem... (more)
To newcomers to the XML world, it might seem as if XML and Java are somehow
connected at the hip. There are certainly synergies between the two
technologies, largely because they've come of age at the same time.
Consequently, many of the new developments in XML are first implemented in
Java, and we're now seeing new Java developments leveraging the
standardization of XML. In the real wor... (more)