You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by xi...@xml.apache.org on 2004/02/06 18:30:44 UTC

[Xindice Wiki] New: XindiceFAQ/AttributeValue

   Date: 2004-02-06T09:30:15
   Editor: 68.155.135.182 <>
   Wiki: Xindice Wiki
   Page: XindiceFAQ/AttributeValue
   URL: http://wiki.apache.org/xindice/XindiceFAQ/AttributeValue

   no comment

New Page:

Q) I followed the Documentation for selecting an attribute but I get no data or a Java XPath Error? I am using Windows 2000.

A) To use an XPath with an attribute on Windows 2000 you will need to enclose the entire XPath expression in double quotes " . For Example:


C:\apache>xindice xpath -c xmldb:xindice://localhost:8080/db/test -q /TEST_NODE/DATA[@_myAttr="3"]

will not return any data or cause a Java error.

Instead, use:

C:\apache>xindice xpath -c xmldb:xindice://localhost:8080/db/test -q "/TEST_NODE/DATA[@_myAttr='3']"

This will return the desired node.