Hello,

I'm wondering if there are any nice ways to create a XML document according
to some DTD with Xerces. I've made a component using Xerces to read, modify
and create new XML documents. All documents should validate OK to a
collection of DTD:s, and this is where the trouble is.
So far, I've got some info from a database telling where to put values when
creating/modifying xml documents, like xmlelement="a/b/c" value = 5, and
then created the nested <a><b><c> element structure with Xerces and added
the value 5 to the node. This is .. well.. a mess. And it feels like storing
XML structure information in two places, both in the DTD and in the database
(a/b/c).
It also feels like I'm on the way to create an own kind of XML parser myself
to parse the "a/b/c" structures and variants in the database.
The documents are created dynamically and the handling is pretty generic for
many kinds of documents.
A document comes in, some info is retrieved from the database for the
document, this info is used to extract values from it and pass them on for
processing.. After that, a result comes back and the info gathered from the
database is used to put the result values back into the document and send it
back to the original sender.

I'm using a DOMParser to do this, Xerces-C 1.4.. I know this is a pretty
unspecified question but maybe some of you have done similar things with
Xerces/DOM and have some good advice/suggestions?

Thanks
/Stefan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to