[Catalyst] XPath, DOM problem
Jonathan Rockway
jon at jrock.us
Tue Jul 8 22:04:01 BST 2008
* On Tue, Jul 08 2008, Herr Verdieck Götz wrote:
> Hi,
>
> I try to generate a site content menu from a xml file.
>
> In my TT file I have the following syntax:
> [%
> # USE prod_tree = XML.Simple('config/xml/hele_de_tree.xml'); # OK this works
>
>
> USE xpath = XML.XPath('config/xml/hele_de_tree.xml'); # ERROR
> #USE dom = XML.DOM;
> #prod_tree = dom.parse('config/xml/sitemap.xml'); # ERROR
>
> -%]
BTW, XML::LibXML is a much nicer library for doing anything related to
XML in Perl. Using anything else is slightly crazy ;)
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
More information about the Catalyst
mailing list