synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kasun Indrasiri (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-955) XPath1.0 Implementation On Top Of XMLStream
Date Sat, 05 Oct 2013 06:00:44 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13786949#comment-13786949
] 

Kasun Indrasiri commented on SYNAPSE-955:
-----------------------------------------

Did you fix the issue I mentioned in my previous comment? Still the basic functionality is
broken with the xmlstreamingxpathv_4.patch. I cannot evaluate the following. (This is working
with  xmlstreamingxpathv_2.patch)

  String exampleXML =
                "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" +
                        "\n" + "      <getQuote>\n" +
                        "         <request>\n" +
                        "            <symbol>kasun</symbol>\n" +
                        "         </request>\n" +
                        "      </getQuote>";
        String exampleXML2 =
                "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" +
                        "\n" + "      <getQuote>\n" +
                        "         <request>\n" +
                        "            <symbol>kasun</symbol>\n" +
                        "         </request>\n" +
                        "      </getQuote>";

        InputStream inputStream = new ByteArrayInputStream(exampleXML.getBytes());
        String xpathString = "/getQuote/request/symbol";
        XMLStreamingXPath xmlStreamingXPath = new XMLStreamingXPath();
        xmlStreamingXPath.setXpathQuery(xpathString);

        String val1 = (String)xmlStreamingXPath.getValueOf(inputStream);
        String val2 = (String) xmlStreamingXPath.getValueOf(new ByteArrayInputStream(exampleXML2.getBytes()));
        System.out.println("Val " + val1);
        System.out.println("Val " + val2);

Please check this end to end and provide a proper patch. 

> XPath1.0 Implementation On Top Of XMLStream
> -------------------------------------------
>
>                 Key: SYNAPSE-955
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-955
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: FUTURE
>            Reporter: isuru janith ranawaka
>            Assignee: Andreas Veithen
>            Priority: Minor
>              Labels: 2013, gsoc
>         Attachments: xmlstreamingxpath.patch, xmlstreamingxpathv_2.patch, xmlstreamingxpathv_3.patch,
xmlstreamingxpathv_4.patch
>
>
> Current SynapseXPath is operates on top of the Axiom Object Model and this project is
for evaluate XPath On top of the XMLStream. XMLStreamReader is given as input and the resulting
output is given as OMElements. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message