Subject: | Valid XML characters |
Date: | Fri, 6 Jun 2014 13:12:01 -0600 |
To: | bug-XML-XPath-Simple [...] rt.cpan.org |
From: | Ryan Prather <godsgood33 [...] gmail.com> |
It appears that this module does not take into account all valid XML
element characters. For example '-' is a valid XML element name character,
but when using that character the regex in _convert() says that is a
function call once it pulls back.
We have hundreds of XML files that we receive from an external source and
so we can't change the names, we need XPath to recognize the presents of
'-' (or other valid characters '_' perhaps) and surround those paths with
quotes. I have attached a possible fix for it. I know this doesn't
completely fix it, but it is on the way.
v/r,
Ryan
Message body is not shown because sender requested not to inline it.