in reply to Re: XML::Twig and handles on regex/xpath
in thread XML::Twig and handles on regex/xpath

Thanks.
Sadly, this also gives an 'unrecogniced expression' error.
I assume Twig does not support this kind of xpath expression.
  • Comment on Re^2: XML::Twig and handles on regex/xpath

Replies are listed 'Best First'.
Re^3: XML::Twig and handles on regex/xpath
by Corion (Patriarch) on Apr 28, 2011 at 08:22 UTC

    What gives an "unrecogniced expression" error?

    I posted three different XPath expressions. You have shown neither the Perl code you use, nor the input data you use nor the XPath expression you use, nor the error message you use. Please help us to help you better by providing us with the relevant information.

    Looking at the XML::Twig documentation, it recommends looking at XML::Twig::XPath for more XPath support.

      Actually I get the error message as soon as I try use the '[starts-with(...)]'.

      Thanks for pointing out XML::Twig::XPath.
      I will try to come up with a solution using this and post it here.