in reply to Replacing an XPath node with the value of its content

Why do you even use this module xmllib,
can't you do it through some regexps?
  • Comment on Re: Replacing an XPath node with the value of its content

Replies are listed 'Best First'.
Re^2: Replacing an XPath node with the value of its content
by stylechief (Beadle) on Oct 21, 2013 at 23:32 UTC
    This can certainly be accomplished via regexps (usually my default mode for this sort of thing). In this case, however, I'm dealing with thousands of files authored by an assortment of tools and people, and would prefer to use a method that helps ensure that syntax and context remain intact 100% of the time when passed chaotic code. If I can't find an XPath-style solution, I will go the regexp route.
    SC