Re: [dom4j-user] Error using SelectSingleNode or SelectNode.......

2005-09-14 Thread Edwin Dankert
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

RE: [dom4j-user] Error using SelectSingleNode or SelectNode.......

2005-09-14 Thread arun jit singh
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

Re: [dom4j-user] Error using SelectSingleNode or SelectNode.......

2005-09-13 Thread Edwin Dankert
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/ -

[dom4j-user] Error using SelectSingleNode or SelectNode.......

2005-09-13 Thread arun jit singh
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