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

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.

  • Comment on Re^3: XML::Twig and handles on regex/xpath

Replies are listed 'Best First'.
Re^4: XML::Twig and handles on regex/xpath
by Eythil (Acolyte) on Apr 28, 2011 at 08:33 UTC
    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.
        Thanks.

        I came up with a similar line.
        It works, but it has not the speed of the 'take all tags and filter them with a regex'-solution. (At least not with my data), so I think I will stick to that.