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

Re: perl script to print xml data like this

by choroba (Canon)
on Oct 04, 2011 at 09:19 UTC ( #929476=note: print w/ replies, xml ) Need Help??


in reply to perl script to print xml data like this

As I wrote earlier, I usually use XML::XSH2 to handle XML. To get the desired output, the following lines are enough:

open EEC3_DTC_Specification_03.20.00_formal.xml; for //DTC/TroubleCode { echo :s 'trouble code: ' text() {"\n"} description: ; ls .. ; }


Comment on Re: perl script to print xml data like this
Download Code
Replies are listed 'Best First'.
Re^2: perl script to print xml data like this
by veerubiji (Sexton) on Oct 04, 2011 at 09:28 UTC

    Hi choroba, thaks for your reply and I will try like your suggestion, because i dnt know that much about XML::XSH2.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-08 04:50 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 (94 votes), past polls