Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## getX-Document function

> Reads an XML document from a SonicMQ `XMLMessage` into an `X-DOCUMENT`.

> #### Syntax

>     FUNCTION getX-Document RETURNS HANDLE.

> #### Applies to

> Message objects

> #### Notes

> - The handle to the created `X-DOCUMENT` is returned as the value of this function. `CREATE X-DOCUMENT` can return an error.

> - The caller is responsible for deleting the handle when the application is done processing the `X-DOCUMENT`.

> - Errors from the getLongText function and `xdoc:LOAD` will be returned.

> #### See also

> createXMLMessage procedure, setX-Document procedure, getX-Document function, setSaxReader procedure, getSaxWriter function, deleteSaxWriter procedure

> For more information, see the "XMLMessage" section.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095