Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: XML cleanup - regex or ?by murugu (Curate) |
on Sep 22, 2010 at 09:08 UTC ( [id://861233]=note: print w/replies, xml ) | Need Help?? |
I dont know whether i understood the question correctly. As you mentioned that each line in the file is single XML statement, I used XML::Twig to check the element and attributes by processing the file line by line. This below code will print the line number at which you find the discrepancy. You can tweak this code to accommodate the changes you need.
Regards,
In Section
Seekers of Perl Wisdom
|
|