matlab.io.xml.dom.FileWriter Class
Namespace: matlab.io.xml.dom
Description
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.
Class Attributes
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
Description
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.
Input Arguments
Properties
Methods
Examples
Version History
Introduced in R2021a