S
Sam
I have a hash ref of data that needs to be written out to an XML document.
Using a hashref to create an XML document can easily be done with
XML::Simple, but as the documentation states,
XML::Simple is able to present a simple API because it makes some
assumptions on your behalf. These include:
a.. You don't want fine-grained control of the formatting of generated XML
Unfortunatly, this is eactly what I want since all the attributes and values
are being put on the same line. While that way is perfectly valid XML syntax
and machine readable, it is not human readable.
Does anyone know of a way (another module perhaps) that I can use to insert
newlines and tabs into the document without post processing the xml?
Thank you.
Using a hashref to create an XML document can easily be done with
XML::Simple, but as the documentation states,
XML::Simple is able to present a simple API because it makes some
assumptions on your behalf. These include:
a.. You don't want fine-grained control of the formatting of generated XML
Unfortunatly, this is eactly what I want since all the attributes and values
are being put on the same line. While that way is perfectly valid XML syntax
and machine readable, it is not human readable.
Does anyone know of a way (another module perhaps) that I can use to insert
newlines and tabs into the document without post processing the xml?
Thank you.