<?xml version="1.0" encoding="windows-1252"?>
<node id="1012990" title="Re: Perl XML Search" created="2013-01-11 17:18:35" updated="2013-01-11 17:18:35">
<type id="11">
note</type>
<author id="647953">
sundialsvc4</author>
<data>
<field name="doctext">
&lt;p&gt;
If we are to extrapolate this toy-example into a requirement of any size (and, mind you, you might &lt;em&gt;not)&lt;/em&gt;, then I will hands-down suggest that you use a library that supports &lt;strike&gt;XSLT&lt;/strike&gt; XPath ... and that you use &lt;em&gt;this&lt;/em&gt; technique to retrieve results from your XML structure, instead of cobblestoned logic of your own. &amp;nbsp; CPAN has a plentitude of industrial-strength XML tools, they&amp;rsquo;re quite efficient, and I feel that they consistently deliver more maintainable and flexible solutions. &amp;nbsp; Build an XPath expression that describes what you want, and let its fingers do the walking for you.
&lt;/p&gt;</field>
<field name="root_node">
1012901</field>
<field name="parent_node">
1012901</field>
</data>
</node>
