Default namespace

106 views
Skip to first unread message

Dávid Szabó

unread,
Dec 17, 2013, 10:15:23 AM12/17/13
to xpath...@googlegroups.com
Recently I ran into the problem of processing a xml with default namespace, as you might also did, according to this note: 
XML: Nothing found. If document uses default namespace - read http://www.edankert.com/defaultnamespaces.html#Conclusion.
After some search I found that, it is possible to write XPath queries without creating aliases, so I thought it might help others if you would link this SO answer instead: http://stackoverflow.com/a/2530023/399107

Anatoliy Artemenko

unread,
Feb 19, 2014, 5:30:13 AM2/19/14
to xpath...@googlegroups.com
Well, these are two different things. That example you refer on stackoverflow is more like a hack, I'd say. Those XPath expressions will not work on same XML message if namespace prefix changes. But, it might be an acceptable workaround in case of one-time testing.

I've now deployed new version of the xpathtester. There is added possibility to register namespaces, as well the default one. Hope that helps :)


--
You received this message because you are subscribed to the Google Groups "XPath Tester help center" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xpathtester...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages