InsertXMLSchema
Adds a new XML schema component to the mapping.
The component's internal structure is determined by the schema file specified in the first parameter.
The second parameter defines the root element of this schema if there is more than one candidate.
If the passed root element is an empty string and more candidates are available, a Select Root Element dialog box will pop up if MapForce is visible. If MapForce is invisible, no dialog box will pop up and only an error is returned.
No XML input sample is assigned to this component.
Signature
InsertXMLSchema(in i_strSchemaFileName:String, in i_strXMLRootName:String) -> Component |
Parameters
Name | Type | Description |
---|---|---|
i_strSchemaFileName | String | The path of the XML Schema Definition file to add. |
i_strXMLRootName | String | The root element of the schema (applicable when the schema has more than one root element). |
Errors
Error code | Description |
---|---|
1200 | The object is no longer valid. |
1201 | Invalid address for the return parameter was specified. |
1240 | Changing the document not allowed. It is read-only. |
1244 | Failed creating component. |