xml.DomDocument.save
Saves a DomDocument object as a XML Document to a file or URL.
Syntax
save(
filename STRING )
- 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 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).