GetDocSchema method: IntBroker class
Syntax
GetDocSchema(DocumentKey &Key, Type[optional])
Description
Use the GetDocSchema method to access the saved schema for the specified document.
Parameters
| Parameter | Description |
|---|---|
|
DocumentKey |
Specify the document by populating the Document Key object with package name, document name, and version name. |
|
Type |
By default, XML schema is returned if no value is passed. You can use the following values to specify the schema type:
|
Returns
A string containing the specified document schema.
Example
Local DocumentKey &Key;
&Key = CreateDocumentKey("package", "document", "version");
&str_json = %IntBroker.GetDocSchema(&Key, %IB_JSON);