I don't think this is the best solution, are you sure you want to turn
off namespace-aware parsing?
It would have been a lot easier to define a prefix namespace
mapping like below.
HashMap map = new HashMap();
map.put( "sws", "http://scheduall.com/webservices/;);
XPath xpath = DocumentHelper.c
Thanks Edwin for pointing me to the right direction. After searching other
messages (epecially the one from Barbara Warwood), I was able to resolve the
problem.
Here it is:
javax.xml.parsers.DocumentBuilderFactory dbf
= javax.xml.parsers.DocumentB
You are searching for elements that are not in a namespace and your
elements are defined in the 'http://scheduall.com/webservices/' default
namespace.
Please see previous postings about how to handle elements
in default namespaces correctly.
Regards,
Edwin
http://www.edankert.com/
-
Hi,
I have just started using dom4j to parse the xml.
I am having problem using selectNodes and SelectSingleNode.
I have a simple xml as follows:
http://scheduall.com/webservices/";>
Login failed, Error: Invalid login information.
What I want to do is check to see if I received any ERRO