Reference a child element from XML schema


#1

Hi,

I have one large schema file XSD containing all my elements.I need to reference appropriate element example “Customer” how can I achieve it in RAML.
Can I do something like below.Does the RAML spec allow it.

schemas:
  - AllSchemas: |
				<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
 <xsd:element name="Customer">
	<xsd:complexType>
	 <xsd:sequence>
	   <xsd:element name="FirstName" type="xsd:string"/>
	   <xsd:element name="Address" type="USAddress"/>
	 </xsd:sequence>
	</xsd:complexType>
	</xsd:element>
	<xsd:element name="Order" type="OrderType"/>
	</xsd:complexType>
	<xsd:complexType name="USAddress">
	 <xsd:sequence>
	  <xsd:element name="HouseNumber" type="xsd:string"/>
	 </xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="OrderType">
	 <xsd:sequence>
	  <xsd:element name="orderID" type="xsd:string"/>
	  <xsd:element name="billTo" type="USAddress"/>
	 </xsd:sequence>
	</xsd:schema>
/customer:   
  get:
    responses:
      200:
        body:
          application/xml:
            schema: AllSchemas.Customer