Same Element Different Attributes

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 UTC