in reply to Re: Indenting XML
in thread Indenting XML

It is a little more complex than this... what do you do with mixed content for example: how would you indent this:

<ul><li><b>bold</b> statement indeed <i>hardburn</i></li></ul>

Update: Oops! Sorry, I should have read the original question before getting all excited. XML::Simple doesn't do mixed content, so there should not be any in the XML anyway. So then, yes, indenting is a little easier. You still need to parse tags properly though, which is not as easy as it might look.