Hello All!
 
I have questions :
 
I've impoted to my Xindice database instance /db/test/dealers follow 3 xml-documents :
 
xml-document 1:
<dealer>
  <id>0001</id>
  <name>Dealer 1</name>
  <country>USA</country>
</dealer>
 
xml-document 2:
<dealer>
  <id>0002</id>
  <name>Dealer 2</name>
  <country>USA</country>
</dealer>
 
xml-document 3:
<dealer>
  <id>0003</id>
  <name>Dealer 3</name>
  <country>Canada</country>
</dealer>
 
 
1. I don't want to index documents by elements, I already knoe structure, but I want to know How to index by data? And is it useful in xindice?
 
2. Which XPath string I have to enter, if I need for example only :
    - 2 first/last entries
    - first/last <dealer> xml-document
 
3. Why XPath query entered by command line { xindice xpath -c /db/test -q /dealer[id="0001"] } doesn't work, and the same time it's working from Java code?
 
 
Thank You,
Damir
 
 
 

Reply via email to