<?xml version="1.0" encoding="windows-1252"?>
<node id="997647" title="Re^2: Parsing Data logger files ..." created="2012-10-06 20:17:26" updated="2012-10-06 20:17:26">
<type id="11">
note</type>
<author id="997643">
RedTussock</author>
<data>
<field name="doctext">
Awesome thanks ...
And the open the folder and process all files in it would look something like ..
&lt;code&gt;
opendir XX, "/somefile/somewhere" or die "Couldn't open the  directory: $!";
while ($_ = readdir (XX))
{
$/ = "\n1=";
while (&lt;&gt;) {
    my @fields = split /\n/;
    s/^[1-6]=// for @fields;
    print +(join ',', @fields[0 .. 5]), "\n";
}

&lt;/code&gt;

Sorry my perl scripting is newb in the extreme ... :-)</field>
<field name="root_node">
997645</field>
<field name="parent_node">
997646</field>
</data>
</node>
