Thanks Dmitri. The alternate syntax works. ~Snehal --- Dmitri Plotnikov <[EMAIL PROTECTED]> wrote: > There is clearly a problem in JXPath's > implementation of local-name and > a bunch of other functions when used without an > argument. I will fix it > tonight. > > The syntax that will work with the current version > is: > > /*[local-name(.)="Envelope" and > namespace-uri(.)="http://schemas.xmlsoap.org/soap/envelope/"] > > Thanks for bringing this problem to my attention. > > - Dmitri > > > --- Snehal Khanna <[EMAIL PROTECTED]> wrote: > > I am new to JXPath and am evaluating different > xpath > > expressions to get a feel of JXPath. am having > trouble > > with some built in functions. > > > > This is the xpath expression to be evaluated > against a > > SOAP request: > > /*[local-name()="Envelope" and > > > namespace-uri()="http://schemas.xmlsoap.org/soap/envelope/"] > > > > My code looks like this: > > > > //get a DOM object > > Document doc = > > getDocument("D:\\jxpathtest\\soap.xml"); > > JXPathContext context = > JXPathContext.newContext(doc); > > Iterator itr = context.iteratePointers(xpath); > //where > > xpath is the above expression > > while(itr.hasNext()) > > { > > Pointer ptr = (Pointer) itr.next(); > > System.out.println("Value: " + ptr.getValue()); > > } > > > > My problem is that itr.hasNext() returns false. > > > > Appreciate any help on figuring this out. > > > > Regards > > Snehal > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free web site building tool. > Try it! > > http://webhosting.yahoo.com/ps/sb/ > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] >
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
