Sample Application Using XML::Twig

The XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.0 NT (http://www.xmlspy.com) by Mark Whitteker (Cisco Systems) -->
<training>
<entry>
<firstname>Mark</firstname>
<lastname>Whitteker</lastname>
<company>Cisco Systems</company>
<phone>(919) 392-7153</phone>
<email>mwhittek@cisco.com</email>
<contact>Yes</contact>
<course>
<coursename>Building XML Applications</coursename>
<provider>Learning Tree International</provider>
<instructor>Nathan Stevens</instructor>
<location>Rockville, MD</location>
<duration>4 Days</duration>
<datecomp>9 June 2000</datecomp>
<comments>Great course and instructor. Does focus a lot on Microsoft products since they have the most mature XML support, but all still very applicable to any platform.</comments>
</course>
<course>
<coursename>Hands-On Java Programming</coursename>
<provider>Learning Tree International</provider>
<instructor/>
<location>Reston, VA</location>
<duration>4 Days</duration>
<datecomp/>
<comments>First course in Java development program.</comments>
</course>
</entry>
<entry>
<firstname>John</firstname>
<lastname>Smith</lastname>
<company>Cisco Systems</company>
<phone>(919) 392-3333</phone>
<email>jsmith@cisco.com</email>
<contact>Yes</contact>
<course>
<coursename>Building Really Cool XML Applications</coursename>
<provider>Learning Tree International</provider>
<instructor>Nathan Stevens</instructor>
<location>Rockville, MD</location>
<duration>4 Days</duration>
<datecomp>9 June 2000</datecomp>
<comments>Great course and instructor. Does focus a lot on Microsoft products since they have the most mature XML support, but all still very applicable to any platform.</comments>
</course>
<course>
<coursename>Hands-Off Java Programming</coursename>
<provider>Learning Tree International</provider>
<instructor/>
<location>Reston, VA</location>
<duration>4 Days</duration>
<datecomp/>
<comments>First course in Java development program.</comments>
</course>
</entry>
<entry>
<firstname>Jane</firstname>
<lastname>Doe</lastname>
<company>Cisco Systems</company>
<phone>(919) 392-5555</phone>
<email>jdoe@cisco.com</email>
<contact>Yes</contact>
<course>
<coursename>Building VRML Applications</coursename>
<provider>Learning Tree International</provider>
<instructor>Nathan Stevens</instructor>
<location>Rockville, MD</location>
<duration>4 Days</duration>
<datecomp>9 June 2000</datecomp>
<comments>Great course and instructor. Does focus a lot on Microsoft products since they have the most mature XML support, but all still very applicable to any platform.</comments>
</course>
<course>
<coursename>Helping-Hand Java Programming</coursename>
<provider>Learning Tree International</provider>
<instructor/>
<location>Reston, VA</location>
<duration>4 Days</duration>
<datecomp/>
<comments>First course in Java development program.</comments>
</course>
</entry>
</training>
Back
Next