[jdom-interest] Unrequested blank Attrib. Namespace for only the top Element(Solution)

Paul H. Roubekas paul at roubekas.org
Sun May 25 17:50:16 PDT 2003


In an effort to help someone else who may make the same mistake, hear is
the solution.  This was being caused by the fact that I had declared a
no-prefix namespace (xmlns="http://....") at the root element, so all my
elements would not need to have QNames like "qname:elementname" but I
added the elements using the namespace unaware element() method - the
one that only has one param (just the element name).  Once I used the
correct element() method (element name, and Namespace) on the
DefaultJDomFactory all was fixed. 

HTH



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3785 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20030525/5b53f598/smime.bin


More information about the jdom-interest mailing list