View Single Post
  #4 (permalink)  
Old 07-31-2007, 07:05 PM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
I've never given Dom4j much thought as there is an XML parser built in to Java. Now having a look I like it's API set much better than the standard DOM. It was parseText that threw me off. C# uses that.

Anyway as to your problem. I think it has to do with namespaces. The node you are looking for has a namespace but the XPath query does not have a namespace.

I think the solution is to add the namespace with a prefix to the document. Then use that prefix in your XPath query. Unfortunately I'm not sure how to do this.
Reply With Quote