XMLString :: xml2Schema - Provide type definition for XML file
The function provides type definitions from an XML file in the dictionary of the database passed in rDatabase. Data types are derived from XML elements and attributes analyzing the XML string (heuristic type definition) and collecting attributes and subordinated elements for all XML element instances of a given type.
Data type names are created for all element names by preceding element names with "s_". Subordinated elements are added as reference members to the structure. When the element contains attributes, attributes are provided as attribute members of the data type. Element and attribute names are used as member names. For each element type an additional attribute is created with the name __text_data, which contains element data.
Attribute and element names are collected from all elements in the XML file, but not duplicated. Attribute names get a default size of 32 characters. The __text_data attribute gets 1023 characters.
The function returns false when an error has been found and true otherwise.
After creating the
The value is true when the function was executed successfully. Otherwise the value is set to false.