--
/* Sandy Pittendrigh >--oO0>
** [EMAIL PROTECTED]
** http://cns.montana.edu/~sandy */
The following code fragments produce different results between xindice-1.1b4 and xindice-1.1b3
In the 1.1b3 case (String)result.getResource(0).getContent() returned an atomic
string (an element value?)
In the 1.1b4 case (String)result.getResource(0).getContent() returned and XML
element, that has to be parsed
(perhaps with nanoxml) to retrieve its element value :
//<xindice-1.1b4>
String myxpath ==
"/EML/HEAD[DOC_ID='Query-03_17_2004-0']/TEMPLATE_DOC_ID/text()";
XPathQueryService service =
(XPathQueryService)data.getService("XPathQueryService", "1.0");
ResourceSet resultSet = service.query(myxpath);
if(resultSet.getSize() > 0)
String templateID = (String)result.getResource(0).getContent();
...templateID now == "<xq:result xmlns:xq="http://xml.apache.org/xindice/Query"
xq:col="/db/neurosys/swdev/query/data"
xq:key="Query--03_17_2004-0.xml">Query</xq:result>"
//</xindice-1.1b4>
//<xindice-1.1b3>
String myxpath ==
"/EML/HEAD[DOC_ID='Query-03_17_2004-0']/TEMPLATE_DOC_ID/text()";
XPathQueryService service =
(XPathQueryService)data.getService("XPathQueryService", "1.0");
ResourceSet resultSet = service.query(myxpath);
if(resultSet.getSize() > 0)
String templateID = (String)result.getResource(0).getContent();
...templateID now == "Query"
//</xindice-1.1b3>
Is there a list of any other such api changes?
Should I be doing this some other way?
