Thanks for the response. However, I am still having a few problems with the XPath itself. I altered the setNamespace() method to follow those described below, however, it still return no results. Is there any way in which you can find out what Xindice is doing in terms of matching the records, like a printStackTrace or something?
Im still getting no results even though the XPath is correct in XML-Spy-5 Thanks Gul Quoting Gianugo Rabellino <[EMAIL PROTECTED]>: > Gul Akbar wrote: > > service.setNamespace("xmlns","http://www.loc.gov/METS/"); > > service.setNamespace("xmlns:xlink","http://www.w3.org/TR/xlink"); > > > service.setNamespace("xmlns:DC","http://purl.org/dc/elements/1.1/"); > > service.setNamespace > > ("xmlns:ETOC","http://localhost:8080/Project/xsd/etoc.xsd"); > > All these should be: > > service.setNamespace("xlink","http://www.w3.org/TR/xlink"); > service.setNamespace("DC","http://purl.org/dc/elements/1.1/"); > ... > > removing the "xmlns" keyword that is not part of the namespace prefix. > > > service.setNamespace("xsi:schemaLocation","http://www.loc.gov/METS/ > > > http://www.loc.gov/standards/mets/mets.xsd > > http://purl.org/dc/elements/1.1/ > > > http://dublincore.org/schemas/xmls/simpledc20021212.xsd"); > > This is *not* a namespace decl. It's just the attribute "schemaLocation" > > in the namespace "http://www.w3.org/2001/XMLSchema-instance", identified > > by the prefix "xsi". > > HTH, > > -- > Gianugo Rabellino > Pro-netics s.r.l. > http://www.pro-netics.com > > ------------------------------------------------- This mail sent through IMP: webmail.brad.ac.uk