tousifp has asked for the wisdom of the Perl Monks concerning the following question:
Here's a simple question :
I have an xml file containing following lines repeatedly
<event rev="1.2"> <date>2014-01-10-07:59:24.439+05:30I-----</date> <outcome status="0">0</outcome> <originator blade="webseald" instance="default"><component rev="1.4">a +uthn</component> <event_id>101</event_id> <action>0</action> <location>PosIntWebSeal1prod</location> </originator> <accessor name=""> <principal auth="IV_LDAP_V3.0" domain="Default">goldytelecom</principa +l> <name_in_rgy>uid=GOLDYTELECOM,cn=external,cn=Users,o=vodafone,c=in</na +me_in_rgy><session_id>05262372-799f-11e3-96d8-00145ee78c6d</session_i +d><user_location>10.77.50.58< /user_location><user_location_type>IPV4</user_location_type></accessor +><target resource="7"><object></object></target> <authntype>formsPassword</authntype><data> </data> </event>
I want to remove only the xml tags and get the data between the tags. Kindly help monks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML to CSV conversion
by choroba (Cardinal) on Jan 14, 2014 at 09:50 UTC | |
by tousifp (Novice) on Jan 14, 2014 at 13:50 UTC | |
by choroba (Cardinal) on Jan 14, 2014 at 14:10 UTC | |
|
Re: XML to CSV conversion
by hdb (Monsignor) on Jan 14, 2014 at 09:53 UTC | |
by tousifp (Novice) on Jan 14, 2014 at 10:58 UTC | |
by hdb (Monsignor) on Jan 14, 2014 at 11:48 UTC | |
by tousifp (Novice) on Jan 14, 2014 at 12:41 UTC | |
by hdb (Monsignor) on Jan 14, 2014 at 12:55 UTC | |
|
Re: XML to CSV conversion
by Discipulus (Canon) on Jan 14, 2014 at 10:54 UTC | |
by Jenda (Abbot) on Jan 20, 2014 at 16:57 UTC | |
|
Re: XML to CSV conversion
by Anonymous Monk on Jan 14, 2014 at 13:51 UTC | |
|