commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Psi Aushilfe3" <Aushilfe3....@prosieben.de>
Subject [JXPath] Cannot create a relative context for a non-existent node
Date Fri, 08 Aug 2003 11:36:22 GMT
Hi!

	...
	JXPathContext xrole =
xnode.getRelativeContext((Pointer)iter.next());

xrole is ok and I can work with it.

	Pointer       person  =
xrole.getPointer("childNodes[packetTypeId=$id]/nodeElement");
	JXPathContext xperson = xrole.getRelativeContext(person);

Person ist not null but person.getNode() is (?) and therefore xperson
does throw an exception, but the following works:

	
System.out.println((String)xrole.getValue("childNodes[packetTypeId=$id]/
nodeElement"));

Note that both xpath expression are identical and the only difference is
getRelativeContext(getPointer()).

What am I doing wrong??


 

Mime
View raw message