« Return to Thread: XPath Problem
Pankaj Mandal -X (pmandal - Ahura Inc. at Cisco) wrote:Here first xpath means the following xml, where some text would be the
actual text that is in your xml
<article>
<title>some text</title>
</article>
Pankaj
-----Original Message-----
From: aslam bari [mailto:iamaslamok@yahoo.co.in]
Sent: Thursday, August 10, 2006 10:59 PM
To: Slide User
Subject: XPath Problem
Dear All,
Does any doby tell me how to use xpath. My Domain.xml contains
following:-
<extractors>
<extractor classname="org.apache.slide.extractor.SimpleXmlExtractor"
uri="/files">
<configuration>
<instruction property="title" xpath="/article/title/text()" />
<instruction property="summary" xpath="/article/summary/text()" />
</configuration>
</extractor>
</extractors>
Problem:- I could not understand what is xpath here and where these
title, and summary exist.
Actually i have contains many XML files in my slide store. I want to
use a extractor that index xml value content as well as the Nodes name
also, so that i can search by the Node's Name. Example
sample.xml file
<Root>
<Circle extents"90">
Register, City, 89, 77
</Circle>
</Root>
Now I want to search by Circle, extents and root also. Currently it
can search only contents like Register, City.
Anydoby help me?
Thanks...
---------------------------------
Here's a new way to find what you're looking for - Yahoo! Answers
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
« Return to Thread: XPath Problem
| Free embeddable forum powered by Nabble | Forum Help |