An SPS can be based on an XML Schema or DTD. An XML Schema or DTD can be created as a schema source in one of the following ways:
|•||The XML Schema or DTD is is created as a schema source directly when the SPS is created (File | New | New from XML Schema / DTD / XML).|
|•||The XML Schema or DTD is added to an empty SPS (in the Design Overview sidebar).|
The respective commands prompt you to browse for the XML Schema or DTD. If the schema is valid, it is created as a schema source in the Schema Sources tree of the Schema Tree sidebar. Alternatively, an XML file can be selected. If an XML Schema (.xsd) or DTD file is associated with the XML file, then the XML Schema or DTD file is loaded as the source schema and the XML file is loaded as the Working XML File. If no schema is associated with the XML file, a dialog pops up asking whether you wish to generate an XML Schema based on the structure and contents of the XML file or browse for an existing schema. If you choose to generate a schema, the generated schema will be loaded as the source schema, and the XML file will be loaded as the Working XML File.
In several File Open and File Save dialogs, you can choose to select the required file or save a file via a URL or a global resource (see screenshot below). Click Switch to URL or Switch to Global Resource to go to one of these selection processes.
Selecting files via URLs
To select a file via a URL (either for opening or saving), do the following:
The file URL appears in the File URL field (see screenshot above). The Open or Save button only becomes active at this point.
Note the following:
Note the following points about files on Microsoft® SharePoint® Servers:
Right-clicking a file pops up a context menu containing commands available for that file (screenshot above).
To open or save a file via a global resources, click Switch to Global Resource. This pops up a dialog in which you can select the global resource. These dialogs are described in the section, Using Global Resources. For a general description of Global Resources, see the Global Resources section in this documentation.
The anyType datatype of XML Schema
If an element in the XML Schema has been assigned the anyType datatype of XML Schema or if it has not been assigned any datatype, then the schema tree in the Schema Tree will show this element as having all the global elements of that schema as possible children. For example, if an element called email has not been assigned any datatype, then it will be displayed in the schema tree with all global elements as possible children, such as, for example: person, address, city, tel, etc. To avoid this, assign the email element a datatype such as xs:string.
© 2019 Altova GmbH