Thread: xPaths problem
View Single Post
  #1 (permalink)  
Old 04-23-2008, 07:04 PM
amr200 amr200 is offline
Member
 
Join Date: Apr 2008
Posts: 1
amr200 is on a distinguished road
xPaths problem
Hi all,

I'm using xPath in order to retrieve data from my parsed DOM tree.
One the the tags in my xml contains colon: <media:image>.
It seems that when I try to get the data after the evaluate function - this doesn't succeed.
Meaning, this won't succeed using xPath (returns null) : XPathExpression expr = xpath.compile("/service/screen/media:image");
It works fine with tags that do not contain colon.
Is there a way to solve this?

Thanks in advance,
AMR
Reply With Quote
Sponsored Links