xml.DomDocument.save

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

Syntax

save(
   filename STRING )
  1. filename defines a valid URL or the name of a file.

Usage

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

Only the following kinds of URLs are supported:
  • http://
  • https://
  • tcp://
  • tcps://
  • file:///
  • alias://
See fglprofile 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.

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).