Datasets and xml schemas, Datasets and xml schemas -8, 1 datasets and xml schemas – Echelon i.LON 100 e2 Internet Server User Manual
Page 215
The DataSet is a relational structure that can be easily traversed and manipulated when you
parse the XML string retrieved by the function. You can use the DataSet as a data source for
many OLE and ActiveX controls. In addition, you can use the DataSet with .NET Data
Provides to write the returned values to a database of your choice.
14.2.3.1
DataSets and XML Schemas
1) Right-click on the Project name in the Solution Explorer and select Add>Add New Item
from the pop-up menu. This opens the Add New Item – Solution Options window.
2) Select DataSet and click Open. Then, click the XML tab at the bottom of the window and
enter the schema for your project into the text box.
3) You can generate the schema from the sample parameters documented in this
manual by using an XSD Schema Generator. Alternatively, you could review the XML
Schema guidelines to construct a schema from scratch:
http://www.w3.org/XML/Schema
The following represents an XML schema you could use for the parameter:
maxOccurs="1">
The following represents an XML schema you could use for the
The data types and relational structure of a DataSet are defined by an XML schema. You
must add a schema to your project before working with DataSets. To add a schema to your
project:
The following represents the schema you might generate for the XML string to be included in
the parameter to be supplied to the DataServerList function. This schema could be
used with the code sample included later in this section. You need to specify two schemas
when using DataSets, one for the parameter you will supply to the function, and one
for the
attributeFormDefault="qualified" xmlns="http://tempur i. org/DataServerList_Data.xsd" xmlns:mstns="http://tempur i. org/DataServerList_Data.e" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml- msdata"> i. LON 100 Internet Server Program 14-8 mer’s Reference