The XmlWriter class / om.XmlWriter methods |
Creates an om.SaxDocumentHandler object writing to a pipe created for a process.
om.XmlWriter.createPipeWriter( command STRING ) RETURNING result om.SaxDocumentHandler
The om.XmlWriter.createPipeWriter() class method creates an om.SaxDocumentHandler object that will write to a pipe created for the specified command. XML data will be send through the pipe when using the om.SaxDocumentHandler methods.
If the process or pipe cannot be created, the method returns NULL.
DEFINE w om.SaxDocumentHandler ... LET w = om.XmlWriter.createPipeWriter("sort -u") IF w IS NULL THEN ERROR "Could not create process." EXIT PROGRAM 1 END IF