Hi,

[EMAIL PROTECTED] writes:

> 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.

In order for this to work the document needs to be validated
"on-the-fly", as you create it. This is necessary in order to
associate schema (DTD or XML Schema) definitions with document
nodes so that when you ask for an attribute that does not
exist, the default attribute set and their values could be
consulted.

I don't think this is supported simply because if it were, we
would have also had in-memory validation, which is definitely
not supported.

hth,
-boris
-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding


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

Reply via email to