<?xml version="1.0" encoding="windows-1252"?>
<node id="1004891" title="Re: Tomcat context.xml parsing using XML::SImple" created="2012-11-21 05:28:45" updated="2012-11-21 05:28:45">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;For any XML work where any of the following is true, XML::Simple is not your friend:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The order of elements is important.&lt;/li&gt;
&lt;li&gt;The distinction between an element and an attribute is important.&lt;/li&gt;
&lt;li&gt;You want to preserve comments.&lt;/li&gt;
&lt;li&gt;You want to preserve whitespace.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Use something like [mod://XML::LibXML] instead.&lt;/p&gt;
&lt;p&gt;TL;DR: No.&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1004889</field>
<field name="parent_node">
1004889</field>
</data>
</node>
