Details
-
Bug
-
Status: Resolved
-
Resolution: Duplicate
-
2.3
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
6496
Description
Using the sample program ApplyXPath, modified slightly to create a validating
parser, evaluate the XPath expression
id("fred john")[last()]
on the XML document:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE project [
<!ELEMENT project ANY>
<!ATTLIST project id ID #IMPLIED>
<!ELEMENT sub ANY>
<!ATTLIST sub id ID #IMPLIED>
]>
<project>
<sub id ="fred"/>
<sub id ="john"/>
</project>
The result is the output:
Loading classes, parsing c:/java/ids.xml, and setting up serializer
Querying DOM using id("fred john")[last()]
<output>
<sub id="john"/>
followed by the program going into an infinite loop.
This is quite serious for the work I'm doing. My code is often running inside
containers which do not allow creation of user threads, so there's no way to
monitor the time taken by the evaluation of an XPath expression.