  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Attribute namespace "collision " bug remains in 1.1 | Attribute namespace "collision " bug remains in 1.1 2007-11-22 - By Jason Hunter
Back Thanks for the bug reminder. I just put the fix in CVS.
For a workaround you could build the element using the UnverifiedJDOMFactory that skips the Verifier step. Produces the same object model result.
-jh-
J.Dalton@(protected) wrote: > I am trying to construct an element that looks like this: > > <xsd:schema > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="mynamespace" targetNamespace="mynamespace" > elementFormDefault="qualified"> > > where "mynamespace" is really a proper URL. > > I get > > Exception in thread "main" org.jdom.IllegalAddException: The namespace > xmlns="mynamespace" could not be added as a namespace to "xsd:schema": > The namespace prefix "" collides with an attribute namespace prefix > on the element > at org.jdom.Element.addNamespaceDeclaration(Element.java:342) > > (Again, "mynamespace" was really a proper namespace.) > > This used to work before 1.0, and I believe this is a known bug in 1.0. > > I'm wondering whether there's a workaround or whether I need > to edit the source code and recompile. > > BTW, this page appears to be about the same problem: > > http://www.junlu.com/msg/166290.html > > -- Jeff > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > To control your jdom-interest membership: > http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected) __ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|
 |