You can try how XML::TreePP module expands your XML source.
XML source code: <?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <link>http://www.kawa.net/</link> <title>Kawa.net xp / Yusuke Kawasaki</title> <pubDate>Thu, 02 Mar 2006 04:51:00 +0900</pubDate> <description>Yusuke Kawasaki's homepage from Japan. ...</description> <copyright>Copyright 1995-2006 Yusuke Kawasaki. All rights reserved.</copyright> <item> <link>http://www.kawa.net/works/perl/treepp/treepp-e.html</link> <title>[Perl] XML::TreePP - Pure Perl implementation for parsing/writing xml file</title> <pubDate>Thu, 02 Mar 2006 04:51:00 +0900</pubDate> <description>XML::TreePP module parses XML file and expand it for a hash tree...</description> </item> <item> <link>http://www.kawa.net/works/perl/feedpp/feedpp-e.html</link> <title>[Perl] XML::FeedPP - Parse/write/merge web feeds, RSS/RDF/Atom</title> <pubDate>Tue, 28 Feb 2006 14:07:00 +0900</pubDate> <description>XML::FeedPP module parses a RSS/RDF/Atom file, converts its ...</description> </item> </channel> </rss>
Hash tree:
Trackback URL: http://www.kawa.net/service/tb/ajaxtb.cgi/works/perl/treepp/tree-demo-e.html