XML Grid Schema
The schema for the XML grid is governed by the following guidelines:
- Data types are restricted to string, numerical, or a list that can be presented to the Platform Builder user as a combo or list box.
- String values can be validated either at the client-side XML grid level or at the server-side transport level.
- All transport properties can be updated at an interval of frequency specified in the XML schema. This action automatically refreshes data from the transport.
The following code example shows the syntax for the schema for the XML grid.
<?xml-stylesheet type="text/xsl" href="Transport.xsl"?>
<Schema name="Transport Settings" xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt=" urn:schemas-microsoft-com:datatypes">
<ElementType name="Transport" content="mixed">
<AttributeType name="name" dt:type="string" required="yes">
<ElementType name="caption" dt:type="string" required="no">
<ElementType name="properties" content="eltOnly">
<element type="property" minOccurs="1" maxOccurs="*"/>
</ElementType>
</ElementType>
<ElementType name="property" content="mixed">
<ElementType name="name" dt:type="string" required="yes"/>
<ElementType name="caption" dt:type="string" required="no"/>
<ElementType name="requery" dt:type="number" required="no"/>
<ElementType name="type" dt:type="string" required="yes"/>
<ElementType name="data" content="eltOnly" order="one" model="closed">
<element type="combo" minOccurs="1" maxOccurs="1"/>
<element type="list" minOccurs="1" maxOccurs="1"/>
<element type="string" minOccurs="1" maxOccurs="1"/>
<element type="number" minOccurs="1" maxOccurs="1"/>
</ElementType>
</ElementType>
<ElementType name="combo" content="eltOnly">
<ElementType name="option" dt:type="string" minOccurs="1" maxOccurs="*"/>
</ElementType>
<ElementType name="list" content="eltOnly">
<AttributeType name="edit" dt:type="string" required="no">
<ElementType name="option" dt:type="string" minOccurs="1" maxOccurs="*"/>
</ElementType>
<ElementType name="string" content="textOnly" model="open">
<ElementType dt:type="string" minOccurs="1" maxOccurs="1"/>
</ElementType>
<ElementType name="number" content="textOnly" model="open">
<ElementType dt:type="number" minOccurs="1" maxOccurs="1"/>
</ElementType>
</Schema>
See Also
Addition of a Custom Transport to the Configure Remote Connection Dialog Box
Last updated on Friday, October 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.