R
Robert W.
Hi,
I have written a schema, specifying attributeFormDefault and
elementFormDefault to be "qualified". If I parse an instance document
validating against this schema with the DOMParser from xerces2-j (2.8.0)
and then serialising the DOM-tree again into a file, all optional attributes
are added with their default values, but they are not qualified with a
namespace-prefix, which finally prevents the serialised document from
being valid with respect to the schema.
How to tell xerces, to qualify the optional attributes with their
namespace when they are added to the DOM-tree?
I have written a schema, specifying attributeFormDefault and
elementFormDefault to be "qualified". If I parse an instance document
validating against this schema with the DOMParser from xerces2-j (2.8.0)
and then serialising the DOM-tree again into a file, all optional attributes
are added with their default values, but they are not qualified with a
namespace-prefix, which finally prevents the serialised document from
being valid with respect to the schema.
How to tell xerces, to qualify the optional attributes with their
namespace when they are added to the DOM-tree?