in reply to Retrieving XML From a File Based On Child Node Attribute

Am I right in assuming all those individual messages are contained in one file ?

If they are try

perl -ne 'BEGIN{$/="\n\n"};print if /RequestId="321150454"/' sample.xml
poj

Replies are listed 'Best First'.
Re^2: Retrieving XML From a File Based On Child Node Attribute
by Anonymous Monk on Feb 11, 2017 at 15:31 UTC
    The "<?xml ..." means they must be different files.