The XmlWriter class / om.XmlWriter methods |
Creates an om.SaxDocumentHandler object writing to a file.
om.XmlWriter.createFileWriter( filename STRING ) RETURNING result om.SaxDocumentHandler
The om.XmlWriter.createFileWriter() class method creates an om.SaxDocumentHandler object that will write to the specified file when using the om.SaxDocumentHandler methods.
The file is created if it does not exist. If the file cannot be created, the method returns NULL.
DEFINE w om.SaxDocumentHandler ... LET w = om.XmlWriter.createFileWriter("mydata.xml") IF w IS NULL THEN ERROR "Could not create file." EXIT PROGRAM 1 END IF