java - How does XPath "evaluate" method work? -


i want understand difference between execution of evaluation when-

  1. 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?
  2. 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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -