You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Christian Geuer-Pollmann <ma...@nue.et-inf.uni-siegen.de> on 2001/04/03 08:58:58 UTC
Q: Namespace-URI for NS attributes
Question:
if I use Xerces 1.3.0 (validating) to parse an XML document containing the
attribute
xmlns:a="http://www.ex.org/"
, I get to following values:
Attr.getPrefix() == "xmlns"
Attr.getName() == "xmlns:a"
Attr.getLocalName() == "a"
Attr.getNamespaceURI() == "http://www.w3.org/2000/xmlns/"
If I use Xerces v1.3.1 (also with setValidating(true)) instead, I get
Attr.getNamespaceURI() == ""
Why points the v1.3.0 NamespaceURI to the NS specification, and the v1.3.1
does not?
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org