[
https://issues.apache.org/jira/browse/WSCOMMONS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Veithen updated WSCOMMONS-190:
--------------------------------------
Component/s: AXIOM
> Parser taken from an partly build OMElement using
> getXMLStreamReaderWithoutCaching() drops namespaces
> -------------------------------------------------------------------------------------------------------
>
> Key: WSCOMMONS-190
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-190
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Thilina Gunarathne
> Assignee: 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.