Restrictions on importing

  • Mixed content is not supported. If you try to import a schema file that includes such content, an error occurs.

  • The supported number of levels in a schema is up to 50. If you try to import a schema file with more levels, an error occurs. Levels in a schema are calculated from the number of levels displayed in the XML - Detailed Information screen. The number of levels might increase in accordance with nesting of element and contents model tags. Attributes also use one level. The presence or absence of indents in the XML schema file has no bearing on the levels.

  • The root element in the tree is expanded from the element statement that has been read first. In the following example, the root element is "a". The "b" element, which is not referenced from anywhere, no longer exists in the tree.

    Figure 4.89 Root element

  • With DTDs, if you try to reference external files from the schema file, the applicable points are ignored.

  • You can import an XML file that has been declared to be the internal subset or the DTD file of the external subset itself, to use as the DTD. XML files that have reference statements to external subsets cannot be imported as DTDs.

  • With DTDs, if you import a schema file with prefixes, the prefixes of all items are ignored.

  • Files to import as schema files must be in Shift JIS, EUC-JP, UTF-8 or UTF-16 encoding.

  • If you try to define a data type with the same name as a built-in data type of the XML Schema, such as "string" or "int", in the XML Schema file to import and then reference that data type, DataMagic works assuming that you referenced the data type of the XML Schema.

  • If the data type of the element could not be found, the data type is used as the character data of an empty element. Similarly, if the data type of the attribute could not be found, the data type is also used as character data.