The <!DOCTYPE...> tag in the XML input determines which DTD to validate against. For example:<!DOCTYPE Music SYSTEM "C:\DTDS\musichits.dtd">You can also use the schema location attributes prefix:noNamespaceSchemaLocation or prefix:schemaLocation in any element. For example:xsi:schemaLocation="C:\DTDS\musichits.xsd"The schema location attributes have the namespace URI http://www.w3.org/2001/XMLSchema-instance.See the W3C XML schema recommendation for more information.The path to a DTD or XSD can be relative, for example <!DOCTYPE Music SYSTEM "musichits.dtd"> or xsi:schemaLocation="musichits.xsd". If the XML input is polled using HTTP(S) Poll input connectors, the path is relative to the polled server’s URL. For all other types of input connectors, the path is relative to the Project’s export directory.
1 In the Design Center Message window, right-click the XMLIN Event and select Settings. The Event Settings dialog box opens.
2
namespace_URI schema_location load_optionnamespace_URI
schema_location
load_option
Specifies when to load a schema. Can be either 0 or 1. If load_option is not specified, you must use the argument -xsdimport <0|1> to define when to load schemas.
Example 24
//!multicolumn!http://www.streamserve.com/xsd/schema/one schemaone.xsd 1http://www.streamserve.com/xsd/schema/two schematwo.xsd 0http://foo.com ./grb/xsd001.xsd 1If schema locations are specified both in the mapping table and by schema location attributes in the XML document (xsi:schemaLocation etc.), the following apply:
OpenText StreamServe 5.6 | Updated: 2013-03-01 |