You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by LAKSHMI SARATHY <Sa...@alcatel-lucent.com> on 2008/03/19 06:37:51 UTC

Selectnodes not working

Hello,


            OMElement result = stub.getDeviceData(omelement);
           
            
            String xpathString = "/result/data";
            AXIOMXPath xpathExpression = new AXIOMXPath (xpathString);

            // Step 3
            List listOfNodes =  xpathExpression.selectNodes(result);

            // Let's see what we have got
            for (int i = 0; i < listOfNodes.size(); i++) {
                OMElement omElement = (OMElement) listOfNodes.get(i);
                System.out.println("omElement = " + omElement);
            }  

In my client i have written this code.. but the selectnodes is not
working . When i directly read teh xml on the client side it is
working...the result object contains all the data. am able to print it
to console.

can anyone help?

Regards
lakshmi

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org