The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: xmlwrite (fname, dom)
Function File: str = xmlwrite (dom)

Write an XML DOM document to file fname or to output string str.

The dom argument must be a DOM document object as returned by xmlread function.

Octave does not ship with the necessary Xerces library so you should take care of adding the required .jar files to your javaclasspath, e.g:

javaaddpath ("/path/to/xerces-2_11_0/xercesImpl.jar");
javaaddpath ("/path/to/xerces-2_11_0/xml-apis.jar");

xmlwrite will check for Java support and proper xerces Java libraries in the javaclasspath until the check passes, or if it is called without arguments. In the latter case it will also return the found xerces javaclasspath entries and xerces version to standard output.

See also: xmlread.

Package: io