company logo

XML exchange schema definition

An OXML schema is another equivalent for a dictionary structure definition and can be used instead of an ODL or dictionary definition. Usually, XML schema definitions are more difficult to provide than ODL, but In order to provide self-contained XML files, the OXML schema can be passed on top of an XML file.

A better way, however, is to provide a separate schema file and make this available in the network. Than, OXML files may refer to the exchange schema defined in this XML schema definition.

  

<!-- XML schema reference--!>

<?xml version="1.0"?>

<OXMLDatabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

              xsi:noNamespaceSchemaLocation="http://my.web.site/exchange_schema.xsd">

  ... data

</OXMLDatabase>

<!-- imbedded XML schema --!>

<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

            xmlns:oxsd="http//www.odaba.com/OXMLExtensions.xsd">

  ... schema definitions

</xsd:schema>

<OXMLDatabase ...">

  ... data

</OXMLDatabase>