On 22 May 2007, at 15:57, Dave Howorth wrote:

Adeola Awoyemi wrote:
Thanks. That seemed to work :)

Now I'm getting "File not found error" with XML::XPath not lining the
fact that I'm passing it a string rather than a file :(

From TFM:

new()

This constructor follows the often seen named parameter method call.
Parameters you can use are: filename, parser, xml, ioref and context.
The filename parameter specifies an XML file to parse.
The xml parameter specifies a string to parse
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Dave,

In my Template I already have that:

    [%
        USE doc = XML.XPath( xml => source_string );

        node = doc.findnodes('/rss');
        adaptation.print(node);
    -%]

I also tried using 'text' as in Template::Plugin::XML::XPath docs, with no luck.

Adeola.


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to