<?xml version="1.0" encoding="windows-1252"?>
<node id="1008589" title="Re: Need to use an XML library without dependencies" created="2012-12-12 16:17:07" updated="2012-12-12 16:17:07">
<type id="11">
note</type>
<author id="980564">
aitap</author>
<data>
<field name="doctext">
&lt;p&gt;No, &lt;c&gt;{...}&lt;/c&gt; constructs a hash reference (which can be assigned to a scalar value, possibly in another hash or even array), not a hash (which is constructed from a LIST (&lt;c&gt;(...)&lt;/c&gt;). See [doc://perlreftut] and [doc://perlref] for more information on handling references.&lt;/p&gt;

&lt;p&gt;You may want to use [mod://XML::Writer] if you'd like to write information on the fly, without constructing a data structure first.&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-980564"&gt;
Sorry if my advice was wrong.
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1008587</field>
<field name="parent_node">
1008587</field>
</data>
</node>
