Parser taken from an OMElement using getXMLStreamReaderWithoutCaching() drops  
namespaces 
------------------------------------------------------------------------------------------

                 Key: WSCOMMONS-190
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-190
             Project: WS-Commons
          Issue Type: Bug
            Reporter: Thilina Gunarathne
            Priority: Blocker


 Contents of the test.xml file...
 <ns3:getPLMObjectOut xmlns:ns3="http://www.plcs.org/Message";>
            <ns3:items xmlns:s51="http://www.plcs.org/PLMServices/Types";
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                       xsi:type="s51:Part">
               <s51:key>
                  <s51:Boid>123</s51:Boid>
                  <s51:Source>Source</s51:Source>
                  <s51:Host>host</s51:Host>
               </s51:key>
..................................


       StAXOMBuilder builder1 =  new StAXOMBuilder(new 
FileInputStream("test.xml"));
        OMElement data = builder1.getDocumentElement();
        XMLStreamReader parser = data.getXMLStreamReaderWithoutCaching();
        StAXOMBuilder builder =  new StAXOMBuilder(parser);
        builder.getDocumentElement().getFirstElement();
        parser.getNamespaceContext();

The above namespace context contains only the 
xmlns:ns3="http://www.plcs.org/Message"; namespace..  Expected behaviour is that 
it should contain  all three "s51", "xsi" and "ns3" namespaces..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to