Bugs item #972737, was opened at 2004-06-14 20:51
Message generated for change (Comment added) made by maartenc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=972737&group_id=16035

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Thomas Diesler (tdiesler)
>Assigned to: Maarten Coene (maartenc)
Summary: dom4j swallows ns definition in DOMReader

Initial Comment:
dom4j swallows the 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
namespace definition. Presumeably because it is also 
the default namespace.

20:42:17,503 DEBUG [InvokerProvider] dom2:
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://SharedTest.org/xsd"; 
xmlns="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <complexType name="AllStruct">
        <all>
          <element name="varString" type="xsd:string"/>
          <element name="varInt" type="xsd:int"/>
        </all>
    </complexType>
</schema>

20:42:17,503 DEBUG [InvokerProvider] dom4j:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://SharedTest.org/xsd";>
   <complexType name="AllStruct">
        <all>
          <element name="varString" type="xsd:string"/>
          <element name="varInt" type="xsd:int"/>
        </all>
    </complexType>
</schema>

         String str = XMLUtils.DocumentToString
(wsdlDocument);
         log.debug("dom2:\n" + str);

         // Get the dom4j representation and modify 
import locations
         org.dom4j.Document dom4jdoc = new DOMReader
().read(wsdlDocument);

         StringWriter sw = new StringWriter();
         XMLWriter writer = new XMLWriter(sw);
         writer.write(dom4jdoc);
         log.debug("dom4j:\n" + sw);


----------------------------------------------------------------------

>Comment By: Maarten Coene (maartenc)
Date: 2004-06-15 18:12

Message:
Logged In: YES 
user_id=178745

Fixed in CVS

thanks!
Maarten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=972737&group_id=16035


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to