<?xml version="1.0" encoding="windows-1252"?>
<node id="1002339" title="Re: XML parsing" created="2012-11-05 10:15:43" updated="2012-11-05 10:15:43">
<type id="11">
note</type>
<author id="647953">
sundialsvc4</author>
<data>
<field name="doctext">
&lt;p&gt;
I would echo the sentiment that, if you are dealing with an XML document, you should use one of the many tools that are expressly designed to do that. &amp;nbsp; ([mod://XML::LibXML] and [mod://XML::Twig] are my personal favorites.)
&lt;/p&gt;&lt;p&gt;
If you are trying to construct a &amp;ldquo;customized&amp;rdquo; XML output based on an XML input that you don&amp;rsquo;t want to have to be terribly &amp;ldquo;smart&amp;rdquo; about, then perhaps a general-purpose templating system would be useful. &amp;nbsp; [mod://Template::Tutorial::Datafile] is a really good discussion of this notion. &amp;nbsp; Here, the application program is not specific, not at all, to what it is producing as an output ... it&amp;rsquo;s just taking its output directly from its input ... but the input file is made to use standard templating constructions.
&lt;/p&gt;</field>
<field name="root_node">
1002321</field>
<field name="parent_node">
1002321</field>
</data>
</node>
