Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Retrieving XML From a File Based On Child Node Attribute

by poj (Abbot)
on Feb 11, 2017 at 12:21 UTC ( [id://1181744]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1181744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-03-29 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found