W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2002

Same Element Different Attributes

From: by way of <brian@creativengine.com>
Date: Wed, 02 Oct 2002 13:08:16 -0600
Message-Id: <5.1.0.14.1.20021002130811.0232fbe8@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




I am trying to write a schema for an application we developed. It sends
xml "requests" to a server and receives xml "replies". Im new to schema
development
and i am having trouble figuring out the best way to organize it...the
problem is, each request is a separate
xml file i.e.
<REQUEST TYPE="GETDOCUMENT" UNID="1234556664325345"/>

<REQUEST TYPE="GETVIEW" UNID="1234556664325345" VIEWNAME="ALL"/>

<REQUEST TYPE="GETSUBSET" UNID="1234556664325345" VIEWNAME="ALL">
      <DOCUMENT UNID="555555555"/>
      <DOCUMENT UNID="555555556"/>
<REQUEST/>


Basically the root element is always "REQUEST" but the attributes change. I
am using XML Spy to code the
schema, but it won't allow me to have two elements of the same name. Does
anyone have any suggestions? Should i be using
attribute groups to group the attributes by the TYPE and then just make one
big schema for the REQUEST Element?
How can i best organize my schema so that it is human readable....i want it
to be an API so developers know which REQUESTS
are coming out of my application and which attributes are required for each
REQUEST TYPE.

thanks,

Brian 
Received on Wednesday, 2 October 2002 15:14:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT