Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Some issues with WWW::Mechanize::Firefox->xpath() method (ctrl+shift+k, stringValue)

by dfaure (Chaplain)
on Apr 02, 2013 at 13:57 UTC ( [id://1026693] : note . print w/replies, xml ) Need Help??


in reply to Re^2: Some issues with WWW::Mechanize::Firefox->xpath() method (ctrl+shift+k, stringValue)
in thread Some issues with WWW::Mechanize::Firefox->xpath() method

The documentation talks about nodes, so it seems that there is no way to get an ordered snapshot with strings...

If this could help, from previous running C++ code dealing directly with the XPCom layer, we found that, while using the ANY_TYPE:

  • The resulting elements have always been returned (as expected) in the document order (aka a depth first tree walk).
  • Even if not predictable at the query time, the exact result type, is driven by the expression query elements (btw, it would be nice to have it returned, to prevent recomputing it from query analysis).

____
HTH, Dominique
My two favorites:
If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
Bien faire, et le faire savoir...