Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Wednesday, May 16, 2012

XPath evaluate results

If you use XPathResult.FIRST_ORDERED_NODE_TYPE as the result type with evaluate, you don't get back the same kind of node set that you do with UNORDERED_NODE_SNAPSHOT_TYPE. You don't use snapshotItem etc with it, instead use singleNodeValue to get the one node in the set. I think you get null back if there are no nodes.

Good description here http://www.wrox.com/WileyCDA/Section/id-291861.html

Followers

Blog Archive