--- title: "Get XML Schema" slug: "get-xml-schema" updated: 2024-03-14T14:45:06Z published: 2024-03-14T14:45:06Z canonical: "documentation.decisions.com/get-xml-schema" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get XML Schema | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.12.0 | | **Location** | Data > XML | The **Get XML Schema** step creates and outputs the XML Schema for a Decisions datatype. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Type Name | The full type name for the Decisions datatype | DecisionsType | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | XML Schema | The XML Schema for the selected datatype | String | --- ## Example 1. Within the platform, create a Datatype to be converted into an XML Schema. For this example, a simple **Database Structure** shown below. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screenshot%202024-03-13%20154947.png) 2. Pick or create a Flow. Then, select the **Get XML Schema** step by navigating to **DATA > XML** within the **Toolbox.****![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screenshot%202024-03-13%20150305.png)** 3. In the **Properties** panel for the **Get XML Schema** step, enter the **Type Name** under **Inputs.** Please note that the Input Mapping MUST be set to **Constant**, otherwise it will give the user an error. Once the **Type Name** has been set to **Constant,** select the datatype from the dropdown menu. Once that is complete, connect the **Done** and **No Matches Found** paths to the **End** step to complete the Flow. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screenshot%202024-03-13%20155254.png) 4. Once the Flow is complete, Select **Debug** and then **Start Debugging**. This will test the Flow to ensure it is working correctly, and will also show the user the XML Schema output. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screenshot%202024-03-13%20155358.png) --- ## Common Errors ### Error Changing type from [datatype] to DecisionsType The following error appears when the **Select From Flow** input mapping is used rather than **Constant.** The step is unable to cast the type as a DecisionsType, throwing the error. #### Exception Message: ```cpp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get XML Schema 1[GetXMLSchemaStep] in flow [Testing Flow]: Error Converting Type Name [Parent None]. Error changing type from ExampleDBStructure to DecisionsType ---> System.Exception: Error Converting Type Name [Parent None]. Error changing type from ExampleDBStructure to DecisionsType ---> System.InvalidOperationException: Invalid type conversion. 'DecisionsType' not assignable from 'ExampleDBStructure'. at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.ChangeType(Object value, DecisionsType targetType, Boolean convertToGenerated, Boolean isList, String errorMessage, Object[] errorParams) --- End of inner exception stack trace --- at DecisionsFramework.Utilities.Data.DecisionsTypeHelper.ChangeType(Object value, DecisionsType targetType, Boolean convertToGenerated, Boolean isList, String errorMessage, Object[] errorParams) at DecisionsFramework.Design.Flow.Mapping.InputImpl.SelectValueInputMapping.GetInputValue(IDataConsumer consumer, FlowStateData currentData, DecisionsType expectedType, Boolean expectingArray, String valueName, Object parentObject, Boolean canBeNull) at DecisionsFramework.Design.Flow.FlowStep.BuildMappingData(FlowStateData data) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ```