![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
With TIBCO ActiveMatrix BusinessWorksTM Plug-in for REST and JSON, you can generate an XML schema file from a given JSON file by using the JSON tools. JSON tools use normal conversion rules. See Normal Conversion Rule for more information about the normal conversion rules.
2. Select Tools > JSON Tools> Generate XML Schema from JSON from the TIBCO Designer menu. The Generate XML Schema from JSON dialog is displayed.
3. Specify a JSON file that you want to convert to an XML schema file. Click Browse next to the JSON File field and then navigate to the directory where the JSON file is saved. The JSON file can be any text type.Note: The file name cannot contain any of the following characters: /\:#
4. Specify a JSON file encoding type in the JSON File Encoding field. The default value is UTF-8.
5. Specify a name for the output XML schema file in the Schema File Name field.
6. Click OK to generate the XML schema file.After the conversion is completed successfully, a dialog box is displayed to inform you that the XML schema file is generated. The output XML schema file is saved in the new automatically created JSON_GEN_Schemas folder in the project directory.
• If a JSON object contains an array, the elements in this JSON object are surrounded with xs:sequence XSD group type. Otherwise, the JSON object is surrounded with the xs:all type.
• If the input JSON data does not have a root, the default root element, JSON, is added in the output XML schema.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |