|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] A Simple Object Definition Language (SODL)
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@m... xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








