Package: matlab.io.xml.dom
Writer that creates a text file
Use an object of the matlab.io.xml.dom.FileWriter class to create a writer
that streams text to a file. Use a matlab.io.xml.dom.FileWriter writer with a
matlab.io.xml.dom.DOMWriter writer to mix serialized XML output with output from
other text sources.
You cannot create a writer for a file that is already open in another writer. Use the
close method to release a file that a writer creates.
The matlab.io.xml.dom.FileWriter class is a handle class.
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
writer = matlab.io.xml.dom.FileWriter(
creates a writer that streams text to the file specified by filePath)filePath,
and sets the FileEncoding
property to 'UTF-8'.
writer = matlab.io.xml.dom.FileWriter(
sets the filePath,encoding)FileEncoding
property to the value of the encoding argument.