xml.DomDocument.save

Saves a DomDocument object as an XML Document to a file or URL.

Syntax

save(
   url STRING )
  1. url is a valid URL or the name of a file.

Usage

Saves a DomDocument object as an XML Document to a file or URL, where url is a valid URL or the name of the file.

Only the following kinds of URLs are supported: http:// , https:// , tcp:// , tcps:// , file:/// and alias:// . See Web services configuration for more details about URL mapping with aliases, and for proxy and security configuration.

See setFeature() to specify how the document can be saved.

See getErrorsCount() and getErrorDescription() to retrieve error messages related to XML document saving.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).