Hi Kevin,
 
It's hard to tell what's causing the cast exception from your code. Any chance you could post the actual exception text? As well as the declarations for theCursor, thePath and domainValue?
 
Thanks,
 
David
----- Original Message -----
From: kevin dong
Sent: Thursday, June 05, 2003 11:06 AM
Subject: Fw: [Jaxen] how can i get a dom node form a xpath?

I am sorry for sending this message again,
 
and could someone give me a advice or a direction?
 
so I will avoid doing some work what is not required.
 
thanks
 
Kevin
 
----- Original Message -----
From: kevin dong
Sent: Monday, June 02, 2003 9:16 AM
Subject: [Jaxen] how can i get a dom node form a xpath?

hi, all.
 
I found a problem when i used following code:
 
///////////////////////////////////////////////////
org.jaxen.dom.DOMXPath thePath= new DOMXPath(theCursor);

org.w3c.dom.Node thePointNode=(org.w3c.dom.Node)thePath.selectSingleNode(theContentDocument.getDocumentElement());

thePointNode.setNodeValue(domainValue);
////////////////////////////////////////////////////////////
 
I got a cast exception, so my question is:
how can i modify a node value use xpath? or I must do the task by myself?
 
 
 
thanks in advance!
 
 
kevin dong

Reply via email to