Thank you Michael. I have found I was using
String name = attrDeclaration.getTypeDefinition().getName();
String namespace = attrDeclaration.getTypeDefinition().getNamespace();
instead
String name = attrDeclaration.getName();
String namespace = attrDeclaration.getNamespace();
This values was used
What method are you using to create the attribute nodes? You must use
createAttributeNS() or setAttributeNS() even for attributes with no
namespace. The "non-NS" methods create (DOM Level 1) non-namespace-aware
nodes which have no local name and cannot be used as input to a schema
validator or any
I am creating the document form a schema on the fly so I am sure the schema
is valid. The attribute is created after reading its declaration from
schema. I use the getAttributeUses method on the owner element. The only
thing is that a whole document is not valid because at the time of
validation i
Did you check that your document and schema are actually valid and that
there are declarations in the schema for the attributes that you're looking
at?
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org
chodnik wrote on 11/10/2009
Hi Windy,
What version of Xerces-J are you using? I fixed a bug [1] in this area for
Xerces 2.9.1. What you're trying to do should work now.
Thanks.
[1] http://issues.apache.org/jira/browse/XERCESJ-1235
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail
Hi Kurt,
Kurt Riede <[EMAIL PROTECTED]> wrote on 11/20/2006 06:15:32 PM:
> Hello xerces users,
>
> the Schema API of xerces offers the element and attribute
> declarations to the DOM nodes in an XML document:
> I might have a DOM element in form of a PSVIElementNSImpl instance
> with the assoc