xmlwrite
io · scripts/io/xmlwrite.m
XMLWRITE Serialize a Java DOM node as indented XML text (MATLAB compatible).
STR = XMLWRITE (DOMNODE) returns the XML text.
XMLWRITE (FILENAME, DOMNODE) writes the XML text to FILENAME.
STR = XMLWRITE (SOURCE) with SOURCE an XML file name, java.io.File or
org.xml.sax.InputSource: parses and re-serializes.
DOMNODE is an org.w3c.dom.Node (typically the Document returned by
XMLREAD). The output starts with an XML declaration and is
pretty-printed with two-space indentation; whitespace-only text nodes
are dropped before indenting. The bundled Java runtime does the work
(javax.xml.transform); no external interpreter is involved.