Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

namespace confusion with xPath

 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
How to handle namespace in xPath with following excerpt. I am quite confused.
Here is the XPath statement:

Here are different versions of xml file with indication wheter it works or not:
Vs. 1: without namespace in root-element document and without Doctype. Works (gives return noteset and true.


Vs. 2: with namespace in document and without Doctype. Does not work. (gives return null/false).

Here's question: How should I change the xPath statement that it works with this kind of implicit/anonymous namespace (not correct name), you know that xmlns='http://www.lotus.com/dxl' stuff.

regards Axel
[ October 22, 2003: Message edited by: Axel Janssen ]
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This FAQ with two examples might help:
http://bobcat.webappcabaret.net/javachina/faq/xpath_01.htm#xpath_Q15
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
Good luck in your job search.
Axel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic