|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
XPath ProblemDear 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... --------------------------------- Heres a new way to find what you're looking for - Yahoo! Answers |
|
|
|
|
|
RE: XPath ProblemThanks Pankaj, Can you guide me for my xml file how can i configure xpath. My Xml file <Drawings> <Circle> <Extents> 89 90 87 90 </Extensts> <Color>Red</Color> <Style>Zigzag</Style> </Circle> <Circle> //So many nodes </Drawings> Now i want to indexed this file , so that i can search by color, extents , circle and value also.
|
|
|
|
|
|
RE: XPath ProblemThanks Pankaj,
May be this is my last question. After doing as you told, Can i search like this:- .... .... <D:where> <S:propcontains><D:prop><D:color/></D:prop> <D:literal>red</D:literal> </S:propcontains> </D:where> .... ....
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |