xml.StaxReader.readFromDocument

Sets the input stream of the StaxReader object to a DomDocument object and starts the streaming.

Syntax

readFromDocument(
   _doc xml.DomDocument )
  1. _doc defines an XML.DomDocument object containing an XML document.

Usage

Use this method to set the input stream of the StaxReader object to a xml.DomDocument object, where _doc is a valid object containing an 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).