New utiltiy find_or_make_node() finds a node within an XPathContext,
authorMike Taylor <mike@indexdata.com>
Mon, 13 Nov 2006 18:03:34 +0000 (18:03 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 13 Nov 2006 18:03:34 +0000 (18:03 +0000)
commitfcbc80b8d39f95b1625298daa56caee62dfe980c
tree9bc03518f82bf5946dab65666439c1d9571bbbd2
parentbd51b2b541f8b4acd0109218c9a76ccc63d50eb9
New utiltiy find_or_make_node() finds a node within an XPathContext,
or, if it doesn't yet exist, makes it within its parent and returns
it.  This calls itself recursively as necessary to make the parent,
grandparent, etc., but catches deep recursion and dies (currently
defined as ten levels which seems like plenty).

dom_add_element() now uses this.
lib/ZOOM/IRSpy/Utils.pm