If I load an XML document from disk and that document has a DTD
reference, then my EntityResolver is used to locate the DTD. When I
ask for an attribute that doesn't exist in the XML file I correctly
get the default value specified in the DTD.
I'd like the same thing to happen for newly created documents. I am
using DOMImplementation::createDocumentType(X("myxml"), X(""),
X("myxml.dtd")); and the document correctly contains the DOCTYPE entry
but when I ask for the same attribute I'm getting nil instead of the
default value in the DTD.
Should this work? If it should, then what is the mechanism by which
the DTD is located? There is no EntityResolver associated with the new
XML document. I've tried using XercesDOMParser::loadGrammar to pre
load the DTD and cache it, but so far I haven't been able to get this
to work.
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]