<?xml version="1.0" encoding="windows-1252"?>
<node id="947841" title="Re: Is there any XML reader like this?" created="2012-01-13 17:10:13" updated="2012-01-13 17:10:13">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;How does this differ from what you want?:&lt;code&gt;
C:\test&gt;junk44
{
  station17 =&gt; {
                 ip =&gt; [
                         "10.0.0.121",
                         "10.0.1.121",
                         "10.0.0.122",
                         "10.0.0.123",
                         "10.0.1.123",
                       ],
               },
  station18 =&gt; {
                 ip =&gt; [
                         "10.0.0.101",
                         "10.0.1.101",
                         "10.0.0.102",
                         "10.0.0.103",
                         "10.0.1.103",
                       ],
               },
  station19 =&gt; {
                 ip =&gt; [
                         "10.0.0.111",
                         "10.0.1.111",
                         "10.0.0.112",
                         "10.0.0.113",
                         "10.0.1.113",
                       ],
               },
}
&lt;/code&gt;


&lt;p&gt;The program that produced the above from your sample data in the __DATA__:&lt;code&gt;
#! perl -slw
use strict;
use Data::Dump qw[ pp ];
use XML::Simple;

my $xml = XMLin( \*DATA );
pp $xml;

__DATA__
...
&lt;/code&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;p align=right&gt;[http://www.theregister.co.uk/2011/11/29/sas_versus_world_programming/|The start of some sanity?]&lt;/p&gt;&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
947833</field>
<field name="parent_node">
947833</field>
</data>
</node>
