Closed phochste closed 2 years ago
The content to be written is expected to follow XML::Struct, so the record should contain something like:
marc:
- record
- - - controlfield
- ...
- - datafield
- ...
I guess you were looking for the reverse of xml_simple
like implemented as [XMLout in XML::Simple](https://metacpan.org/pod/XML::Simple#XMLout()). I move this request to #24.
In the current version of xml_write the root element is always called
<root>
.If
marc
contains something like:The fix will currently result in:
which need to be processed regex search/replace to create the correct '' root element.