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).
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 optionsimple
toxml_write
. This is the reverse ofxml_read
with optionsimple
(seexml_simple
).