java - How does XPath "evaluate" method work? -
i want understand difference between execution of evaluation when-
- document object's setnamespaceaware , isvalidating set true- in case, understand if xml uses namespace, need set namespacecontext. if not set namespacecontext, how evaluate method work/ handle condition?
- document object's setnamespaceaware , isvalidating set false- happens if these 2 set false?
(this question linked issue mentioned in this question.)
xpath not defined except on namespace-aware source documents. simple answer is, might happen depending on implementation.
by constrast, xpath should work regardless of setting of isvalidating, , in cases should produce same results. exception might use of id() function, depends on id attributes being recognised.
Comments
Post a Comment