LibreCat / Catmandu-XML

Catmandu modules for working with XML data
https://metacpan.org/module/Catmandu::XML
Other
4 stars 3 forks source link

Support writing simple XML #24

Open nichtich opened 2 years ago

nichtich commented 2 years ago

xml_write expects record structure as defined by XML::Struct so all aspects of XML can be serialized. In practice the XML is often much simpler, so plain key-value forms should be serializable as done by [XMLout in XML::Simple](https://metacpan.org/pod/XML::Simple#XMLout()). Could be provided by addition of option simple to xml_write. This is the reverse of xml_read with option simple (see xml_simple).