in reply to XML Parsing in a "mixed content" file

If by "mixed content" you mean e.g. <node>foo<bar>quz</bar>baz</node>, then yes, I personally would definitely reach for XML::LibXML. Many of the modules that map XML to Perl data structures aren't able to properly represent or round-trip such mixed content XML.

Replies are listed 'Best First'.
Re^2: XML Parsing in a "mixed content" file
by llarochelle (Beadle) on Jan 14, 2019 at 14:58 UTC
    By mixed content I meant XML + TT directives (the template itself), since I'm building an XML from a TT template.