You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Thilina Gunarathne (JIRA)" <ji...@apache.org> on 2007/04/06 11:39:32 UTC

[jira] Updated: (WSCOMMONS-190) Parser taken from an partly build OMElement using getXMLStreamReaderWithoutCaching() drops namespaces

     [ https://issues.apache.org/jira/browse/WSCOMMONS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilina Gunarathne updated WSCOMMONS-190:
-----------------------------------------

    Summary: Parser taken from an partly build OMElement using getXMLStreamReaderWithoutCaching() drops  namespaces   (was: Parser taken from an OMElement using getXMLStreamReaderWithoutCaching() drops  namespaces )

> 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
>            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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org