Lonworks xml schema, Orks, Xml schema – Echelon LonWorks Network XML User Manual

Page 64

Advertising
background image

56 L

ON

W

ORKS

XML Schema

L

ON

W

ORKS

XML Schema

The XML schema used for LonWorks network is as follows:

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

<xs:schema targetNamespace="http://www.echelon.com/LonMaker"

elementFormDefault="qualified"

xmlns="http://www.echelon.com/LonMaker"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="LonWorksNetwork">
<xs:complexType>
<xs:sequence>

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

<xs:element name="ReportCreated" type="xs:dateTime" minOccurs="0" />

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

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

<xs:element name="ExportScope" type="enumType" minOccurs="0" />

<xs:element name="Comment" type="xs:string" minOccurs="0" maxOccurs="1" />

<xs:element name="Subsystems" type="subsysCollection" minOccurs="0" />

<xs:element name="Channels" type="chanCollection" minOccurs="0" maxOccurs="1" />
<xs:element name="DeviceTemplates" type="devTmplCollection" minOccurs="0"
maxOccurs="1" />
<xs:element name="ConnectDescTemplates" type="cdCollection" minOccurs="0"
maxOccurs="1" />

</xs:sequence>
</xs:complexType>
</xs:element>

<xs:complexType name="enumType">
<xs:complexContent>
<xs:extension base="xs:anyType">
<xs:attribute name="ID" type="xs:integer" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>

<xs:complexType name="objectType">
<xs:sequence />
<xs:attribute name="Handle" type="xs:integer" use="optional" />
<xs:attribute name="Action" type="xs:string" use="optional" />
</xs:complexType>

<xs:complexType name="valueType">
<xs:complexContent>
<xs:extension base="xs:anyType">
<xs:attribute name="Index" type="xs:integer" />
</xs:extension>
</xs:complexContent>
</xs:complexType>

<xs:complexType name="extenValue">
<xs:sequence>
<xs:element name="Type" type="enumType" maxOccurs="1" minOccurs="0" />
<xs:element name="Data" type="xs:string" maxOccurs="1" minOccurs="0" />
<xs:element name="NumberDimensions" type="xs:integer" maxOccurs="1"

minOccurs="0" />

Advertising