I'm new to Perl, and I need to learn how to parse a basic XML file (I'm talking REALLY basic, like just a few nested tags). This is for a learning exercise to help us understand some intermediate parsing techniques. So I did what I normally do, google for some examples. However, all the search results use modules like XML::Parser or XML::Simple. I need to do it without modules like this.
Does anyone know of any good sources to find examples of Perl XML parsing WITHOUT these modules. I've heard that using a stack is useful for nested tags (and checking if the tags are closed properly).
Here's an example of something I'd need to parse. I need to be able to extract everything from inside the tags, and of course the name of the tags to go with them:
<?xml version="1.0"?>
<employee>
<name>Bill</name>
<age>22</age>
<address>123 Bark St.</address>
<manager>
<name>Jack</name>
<age>45</age>
</manager>
</employee>