xmlprettyprint
format an XML file.
📝Syntax
xmlprettyprint(xml_file)
📥Input Arguments
Parameter Description
xml_file a valid XML file.
📤Output Arguments
Parameter Description
res a string: a formatted XML text (human readable).
📄Description

xmlprettyprint formats a XML file to be human readable.

💡Examples
xml_filename = [modulepath('xml'), '/tests/test_xml.xml'];
if isfile(xml_filename)
    xmlprettyprint(xml_filename, false);
    fileread(xml_filename)
    xmlprettyprint(xml_filename, true);
    fileread(xml_filename)
end
    
🔗See Also
jsonprettyprint
🕔Version History
Version Description
1.15.0 initial version
Edit this page on GitHub