Pathologically Eclectic Rubbish Lister | |
PerlMonks |
extract tag form xml fileby Murugan (Initiate) |
on Dec 03, 2018 at 10:46 UTC ( [id://1226654]=perlquestion: print w/replies, xml ) | Need Help?? |
Murugan has asked for the wisdom of the Perl Monks concerning the following question: Below three lines is in one file data.xml <inline-formula id="ieqn-1"><alternatives><mml:math display="inline"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula> <inline-formula id="ieqn-2"><alternatives><mml:math display="inline"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula> <inline-formula id="ieqn-3"><alternatives><mml:math display="inline"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula> Now i need this lines as separate file like below: ieqn-1.mml ieqn-2.mml ieqn-3.mml perl script needed.
Back to
Seekers of Perl Wisdom
|
|