Hey, again, all.

I'm trying to use an XPath expression to get a NodeSet.  This ought to be 
really straightforward, based on the sample code I've seen,  but I'm 
having some troubles.  I've verified that my response contains a valid 
XHTML entity.

DomRepresentation doc = response.getEntityAsDom();
String xpath = "//a";
NodeSet nodes = doc.getNodes(xpath);  //This returns null

I've traced in enough to see that the InputStream inside the 
DomRepresentation is null - XmlRepresentation.internalEval() is catching 
the InvalidArgumentException that gets thrown by DocumentBuildre.parse().

Is there some step I'm missing here?

Thanks for any help!

(I'm running Restlet 1.1 RC1, JDK 1.6.0_06, in Eclipse 3.3.2, on Windows 
Vista.)

--------------------------------
John Wismar
[EMAIL PROTECTED]

Reply via email to