|
Hi everybody... In Xerces 2.7.0 it is explicitly stated
that, no matter how one removes an attribute (attList->removeNamedItem,
attList->removeNamedItemNS, Check out the following schema and
document: SCHEMA DOCUMENT I load the document to a DOM like this: DOMParser->setDoNamespaces(true); In the DOM constructed, as expected, there
is a "myat" attribute for element "subelement" having the
value of "123". As the latter was declared as a global attribute in
the schema, it is namespace-qualified (getNamespaceURI() GIVES "http://schema1") even though
schema has attributeFormDefault="unqualified" (correct me if I'm wrong...).
So far so good. Now I'm trying to remove that attribute. No
matter which of the above methods I choose, I cannot obtain the immediate
replacement of this attribute, although it has a default value. “removeNamedItem” causes the
creation of a "myat" element, but with no namespace. All other
methods just remove the attribute and no replacement occurs. What is going on? Am I missing
something?... Is default-attribute re-instantiation only
working for defaults specified in DTDs?, not in schemas? Any help would be GREATLY appreciated... Thanks in advance. Nicolas |
