Wrapping elements, Wrapping elements -9, 2 wrapping elements – Echelon i.LON 100 e2 Internet Server User Manual

Page 216

Advertising
background image

i.

LON 100 Internet Server Programmer’s Reference

14-9

<xs:sequence>

</xs:element>

</xs:sequence>

<?xml version="1.0" encoding="utf-8" ?>

<xs:schema id="DataServerList_Result_Element"

targetNamespace="http://tempur

i.

org/DataServerList_Data.xsd" elementFormDefault="qualified"

attributeFormDefault="qualified" xmlns="http://tempur

i.

org/DataServerList_Data.xsd"

xmlns:mstns="http://tempur

i.

org/DataServerList_Data.xsd"

xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-

msdata">

<xs:element name="DataServerList_Result_Element" msdata:IsDataSet="true">

<xs:complexType>

<xs:sequence>

<xs:element name="iLONDataServer">

<xs:complexType>

<xs:element name="DpNVL" minOccurs="0" maxOccurs="1">

<xs:complexType>

<xs:sequence>

<xs:element name="SCPTobjMajVer" type="xs:string" minOccurs="0" />

<xs:element

name="SCPTobjMinVer"

type="xs:string"

minOccurs="0"

/>

<xs:element

name="UCPTlastUpdate"

type="xs:string"

minOccurs="0"

/>

<xs:element

name="UCPTlifeTime"

type="xs:string"

minOccurs="0"

/>

</xs:sequence>

</xs:complexType>

<xs:element name="NVL" minOccurs="0" maxOccurs="unbounded">

<xs:complexType>

<xs:sequence>

<xs:element name="UCPTindex" type="xs:string" minOccurs="0" />

<xs:element name="UCPTpointName" type="xs:string" minOccurs="0" />

<xs:element name="UCPTlocation" type="xs:string" minOccurs="0" />

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:complexType>

</xs:element>

</xs:schema>

14.2.3.2 Wrapping

Elements

Once you have added the XML schema to your project, you can begin writing code to use the

schema, and generate the input XML string to be passed to the <Data> parameter of your
function.
However, you should note that a DataSet contains two wrapping elements. The root element

reperesents the DataSet. The children of the root element represent tables that will contain
the data to be included in your input XML string.
The following is an example of an XML String generated by a DataSet:

<A><B><UCPTdataPointType>NVL</UCPTdataPointType></B></A>

Advertising