Re: [dom4j-user] Getting Null Pointer exception in XPATH execution

2004-04-06 Thread Maarten Coene
: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Getting Null Pointer exception in XPATH execution Hi Shekhar, Which version of Xalan do you use? (use org.apache.xalan.Version for this) The problem could be the DOM implementation of DOM4J which is very basic and is far from DOM compliant at the moment

RE: [dom4j-user] Getting Null Pointer exception in XPATH execution

2004-04-05 Thread Shekhar Srivastava
: Shekhar Srivastava Cc: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Getting Null Pointer exception in XPATH execution Hi Shekhar, Which version of Xalan do you use? (use org.apache.xalan.Version for this) The problem could be the DOM implementation of DOM4J which is very basic and is far from

Re: [dom4j-user] Getting Null Pointer exception in XPATH execution

2004-04-01 Thread Maarten Coene
ssage- From: bob mcwhirter [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:49 AM To: Shekhar Srivastava Cc: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Getting Null Pointer exception in XPATH execution It looks like you're using Xerces for the xpath stuff instead of the built-in Ja

RE: [dom4j-user] Getting Null Pointer exception in XPATH execution

2004-04-01 Thread Shekhar Srivastava
CTED] Sent: Friday, April 02, 2004 1:49 AM To: Shekhar Srivastava Cc: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Getting Null Pointer exception in XPATH execution It looks like you're using Xerces for the xpath stuff instead of the built-in Jaxen xpath impl. Look at the API for Branch/

Re: [dom4j-user] Getting Null Pointer exception in XPATH execution

2004-04-01 Thread bob mcwhirter
It looks like you're using Xerces for the xpath stuff instead of the built-in Jaxen xpath impl. Look at the API for Branch/Element, and you'll see that it directly supports XPath using the integrated Jaxen impl. -bob On Thu, 1 Apr 2004, Shekhar Srivastava wrote: > Hi All, > > I am new

[dom4j-user] Getting Null Pointer exception in XPATH execution

2004-04-01 Thread Shekhar Srivastava
Hi All, I am new to DOM4J and I am getting the following exception in an existing system that I am supporting. We are using JDK 1.4.1. NodeIterator nl = XPathAPI.selectNodeIterator( doc, xql ); while ( ( n = nl.nextNode () ) != null ) { //...some processing } the xql passed is "//docinf