On 5/5/2012 5:42 AM, S Peter wrote:
Hi
I am S. Peter, a beginner in Perl program, working in XML files. I have a xml files with the following coding.
"<formula formula-type="inline"><tex notation="TeX">$N$</tex></formula>"
I require a small script in perl to open any xml file and just copy and write only the command starts with "<formula" till it closes with "</formula> in a new file.
If a xml file consists of any numbers of "<formula....</formula>" commands it should be written in separate single file of all together in it.
Looking forward of any help.
Thanks
S. Peter
You might try XML::Simple
John
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/