Importing by parsing an XML instance
In order to transform the imported XML schema to the relational schema, you can also choose to parse an XML data source to get the XML structure. You should be aware of the following points about XSD in order to generate a correct imported XML schema.
- The way to import XML schema from XSD is recommended, because when you import an XML schema by parsing an XML instance, data types in the schema may not very accurate and all elements will be parsed in one tree.
- The XML schema structure will be parsed to a lot of complex elements which begin with XML root node. You can specify data types for the imported XML schema if you know data types accurately, otherwise it will be specified as default of JReport Designer. (For the details about data types and the XML structures supported by JReport Designer, see the section Importing from an XSD file).