Using W3's XML Schema to define an XML language for defining a beamine, one would use:

eg, One might then define what a valid <xcor> element is using XML Schema as:

<xsd:element name="xcor">
  <xsd:complexType>
     <xsd:attribute name="bdes" type="xsd:float"/>
     <xsd:attribute name="z" type="xsd:float"/>
     <xsd:attribute name="name" type="xsd:string"/>
  </xsd:complexType>
</xsd:element>

We have define an xsd:element named "xcor" and said that such elements have 3 attributes. The "name" attribute must be a string and the "bdes" and "z" attributes are of type float.

A valid instance of the above schema would then be, eg:

<xcor name="xcor:lc03:42" bdes=14.3 z=324.45/>

To include the relationship of this xcor to other magnets (which "class" of magnet is it?), and to SLC timing modes ("mode"), we would probably define an xcor to be an element with child elements (and attributes).

<xsd:element name="xcor">
  <xsd:complexType>
     <xsd:attribute name="bdes" type="xsd:float"/>
     <xsd:attribute name="z" type="xsd:float"/>
     <xsd:attribute name="name" type="xsd:string"/>
     <xsd:sequence>
        <xsd:element name="class" type="xsd:string"
          minOccurs=1 maxOccurs=3>
        <xsd:element name="mode" type="xsd:int"
          minOccurs=1 maxOccrus=20>
     </xsd:sequence>
  </xsd:complexType>
</xsd:element>

An valid instance of that would be:

<xcor name="xcor:lc03:42" bdes=14.3 z=324.45>
  <class>dipole</class>
  <class>corrector</class>
  <mode>1</mode> <!-- slc e- -->
  <mode>2</mode> <!-- slc e+ -->
  <mode>7</mode> <!-- pep2 her -->
</xcor>

So,