Re: Xpath issue with Axiom/ADB

2011-12-23 Thread Amila Suriarachchi
yes. that is the reason. Thanks Andreas. Amila On Thu, Dec 22, 2011 at 6:28 PM, Andreas Veithen wrote: > On Thu, Dec 22, 2011 at 13:36, Amila Suriarachchi > wrote: > > hi, > > > > I am getting some null pointer exceptions for some xpath queries > executed on > > Axiom objects. Here is a sample

Re: Xpath issue with Axiom/ADB

2011-12-23 Thread Andreas Veithen
I checked the XPath specs and this is actually the expected behavior. The reason is that //sn:wrapper/sn:placeOrder is an abbreviation for /descendant-or-self::node()/child::sn:wrapper/child::sn:placeOrder. Therefore the node set is empty if sn:wrapper is the root node. However the following expres