Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: XML parsing

by rjt (Deacon)
on Nov 05, 2012 at 13:50 UTC ( #1002328=note: print w/ replies, xml ) Need Help??


in reply to XML parsing

perl -nle 's/\|(.+?)\|/print $1/eg' < test.xml

Outputs:

IMSI_NUMBER MSISDN_NUMBER service MSISDN_NUMBER SCPID service_class promo_plan VMSMSISDN_NUM KI

However, if you need something more robust, you will want to check out one of the many XML modules such as XML::Simple.


Comment on Re: XML parsing
Select or Download Code
Replies are listed 'Best First'.
Re^2: XML parsing
by arunshankar.c (Initiate) on Nov 05, 2012 at 14:11 UTC
    Thank you rjt for providing the one liner..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-07-28 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls