in reply to Transliteration inside an XML file

Well, if what you want is to do the transliteration only inside the TIER element, you can use flip/flop.

if (/\<TIER/ .. /\/TIER\>/) { $input =~ $your_substitution_regex; }

That's a quick and dirty solution but it's cheap so you may just be happy with it if you don't want to seriously parse the XML.

See the perlop man page for more info about this operator.

Replies are listed 'Best First'.
Re^2: Transliteration inside an XML file
by flowdy (Scribe) on Jun 19, 2014 at 11:06 UTC

    As described in OP, the tags to select seem to be qualified by certain attributes. Hence your regexes fall short here.