A Simple Object Definition Language (SODL)
Jonathan A. Borden
jborden at mediaone.net
Mon Sep 28 18:26:57 BST 1998
A Simple Object Description Language (SODL)
This is a very simple way to reprasent objects in XML. This representation
is compatible with Microsoft's typelibrary which is a binary format. The
element "type" was intended to use definitions from XML-Data but if XML-Data
isn't going anywhere we may need to include a "mini-XML-Data" within the
SODL DTD.
SODL is related to XML-RPC in that objects are defined as being composed of
interfaces (i.e. interfaceDef's). This approach to object definition is
taken because it is compatible with several of the XML-RPC efforts including
John Tigue's as well as being compatible with Microsoft's COM.
First an example, then the DTD:
<objectDef uid="
" name="JABR.DataObject">
<interfaceDef uid="
" name="IJABRDataInterface">
<property>
<name>Y</name>
<value><i4>345667</i4></value>
</property>
<property id="1">
<value><string>An unnamed property</string></value>
</property>
</interfaceDef>
</objectDef>
----DTD-Part-Here:-)
<!ELEMENT interfaceDef (name,derivedFrom,(property|method)*)>
<!ATTLIST interfaceDef
uid CDATA #required
version CDATA "1.0"
>
<!ELEMENT property (name,params?)>
<!ATTLIST property id CDATA ""
access (get|put|getput) "getput"
description CDATA ""
>
<!ELEMENT method (name,params?>
<!ATTLIST method id CDATA ""
description CDATA ""
>
<!ELEMENT params (param*)
<!ELEMENT param (name, type)>
<!ATTLIST param
type (in|out|inout|retval) #required
id CDATA ""
>
<!ELEMENT name #PCDATA>
<!ELEMENT derivedFrom #PCDATA>
<!ELEMENT type (long|short|string|bool ..)>
<!- types from XML-data to be used here ->
<!ELEMENT objectDef (interfaceDef+,other)>
<!ATTLIST objectDef
uid CDATA #required
name CDATA #required
transacted (not|supports|required|new) "not">
Jonathan Borden
JABR Technology Corp.
jborden at mediaone.net
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list