Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: Examples where XML::Simple is the optimal choice?by Preceptor (Deacon) |
on Oct 23, 2015 at 21:53 UTC ( [id://1145818]=note: print w/replies, xml ) | Need Help?? |
Actually, thinking about it - one of the fundamental problems here, is that the transformation between XML to has breaks down - because what you have in XML is:
So with that in mind - you can craft XML that passes through XML::Simple painlessly by not doing any of those things:
The irony is though - if your XML is that simple, then you didn't need XML::SImple either:
But as we know - it's a bad idea to parse XML with a regex - I think it's a bad idea to use XML::Simple for exactly the same reasons. (And you need to install it too)
In Section
Seekers of Perl Wisdom
|
|