myXMLwrite
Version 1.0.0.0 (1.52 KB) by
Some One
Saves a DOM to a file without adding extra line breaks as does matlab's XMLWRITE function.
ST = myXMLwrite(FILENAME, docNode) Saves (properly!) an XML file.
default command XMLWRITE causes addition of extra line breaks in the xml file, this version works around this apparent bug
FILENAME is the file name string to save to (e.g. 'test.xml')
DOCNODE is a Document Object Model (most commonly created by the XMLREAD command, this object will be written to the file specified by FILENAME.
The function returns success status from the FCLOSE function - returns 0 if successful, -1 if not.
Cite As
Some One (2026). myXMLwrite (https://www.mathworks.com/matlabcentral/fileexchange/24754-myxmlwrite), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
Find more on Structured Data and XML Documents in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
