WSDL documents typically use namespaces, so you'll need to use some namespace prefix in your XPath expression. So something like
//foo:binding/foo:operation/@name would work if the 'foo' prefix is bound to the WSDL namespace URI etc. James ------- http://radio.weblogs.com/0112098/ ----- Original Message ----- From: "Vinu Murugesan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 21, 2002 6:54 PM Subject: [dom4j-user] Parsing WSDL files using XPATH > Hello all, > > I am trying to parse a WSDL file using XPATH. However, > the result is always coming out with empty nodes. But > when I type in the same XPATH in XML-SPY's XPath > Evaluator, it works. Can anyone tell me what I'm doing > wrong? > > Here is the query I am using: > > //binding/operation/@name > > By the way, dom4j is IMO the easiest XML framework for > Java. > Thank you. > Vinu. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > dom4j-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dom4j-user > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user