You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Aslam Bari <ia...@yahoo.co.in> on 2006/09/30 08:43:34 UTC

xPATH PROBLEM

Dear All,

I am facing a problem in setting the xpath for a simplexmlextractor. My xml
file structure is as below.

<Q>
      <question>
                   <ques answer="india" output="screen">
      </question>
      <question>
                   <ques answer="russia" output="plotter">
      </question>
      <question>
                   <ques answer="china" output="printer">
      </question>
</Q>

i want to make proterteis to answer and output. how to set xpath.

<instruction property="answer" xpath="/Q/question/ques/answer" />
<instruction property="output" xpath="/Q/question/ques/output" />


OR 

<instruction property="answer" xpath="/Q/question/ques" />



Help required plz.




-- 
View this message in context: http://www.nabble.com/xPATH-PROBLEM-tf2360660.html#a6576608
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org