qc_xml_to_struct End of trail navigation bar

Table of Contents

qc_xml_write

Writes an XML document to a file, removing extraneous newlines.

Syntax

qc_xml_write(filename, doc);    % Writes doc to filename with no extraneous newlines
xml_string = qc_xml_write(doc); % Returns doc as a string with no extraneous newlines
    

Description

This function duplicates the functionality of xmlwrite except that it eliminates the extraneous newlines which xmlwrite is known to introduce.

Parameters

filename

A string containing the filename to which to write. eg. 'myxml.xml'

doc

An XML Document Object Model object.

Outputs

xml_string

The XML document as a string, without the extraneous newlines.

Examples

qc_xml_write('myxml.xml', doc); % write XML doc to file myxml.xml
s = qc_xml_write(doc);          % get XML doc as a string
    

See Also

 

navigation bar