<?xml version="1.0" encoding="windows-1252"?>
<node id="705917" title="Re: XML::Parser Tutorial" created="2008-08-21 14:10:30" updated="2008-08-21 10:10:30">
<type id="11">
note</type>
<author id="705910">
Mike Blume</author>
<data>
<field name="doctext">
I realize this article was written some time ago, but it seems to still apply to XML::Parser

My question is: How do you parse a self containing element using this library?  A web page I'm trying to parse is structured similar to the following:
&lt;code&gt;
   &lt;class&gt;
      &lt;student name="Student1" race="Fast" age="Std" /&gt;
      &lt;student name="Student2" race="Slow" age="New" /&gt;
      &lt;student name="Student3" race="Okay" age="Old" /&gt;
   &lt;/class&gt;
&lt;/code&gt;

Using XML::Parser in the same manner as you did in the article, did not work for me.  I'm assuming this is because there is no start/end tag for "student"; it is self containing.  I'm thinking that I might have to make my own parser, but if there is already one in this module I can use, I'm all for it :)

TY,
mike</field>
<field name="root_node">
62782</field>
<field name="parent_node">
62782</field>
</data>
</node>
