MQRFH2 매개변수를 포함하는 예제 XML 데이터:
<?xml version="1.0" encoding="UTF-8"?>
<NameValueData>
<parameterA>
<property1>value</property1>
<property2 datatype="nt">345</property2>
</parameterA>
<parameterB>
<groupHeader>
<property3>true</property3>
</groupHeader>
<groupDtl>
<property4>ANR</property4>
<property4>BYC</property4>
<property4>ENN</property4>
</groupDtl>
</parameterB>
<parameterC>
<groupNew>
<property5>01/15/2004</property5>
</groupNew>
<property1>value</property1>
</parameterC>
</NameValueData>
다음 예제 XML 데이터는 위의 MQRFH2 매개변수를 포함하는 예제 XML 데이터에 표시되는 3개의 매개변수를 정의합니다. 모든 특성 요소의 유형 MQRFH2PropertyType은 위의 예제 XML 데이터의 property2에 표시된 datatype 속성을 제공합니다. 또한 MQRFH2PropertyType 유형을 통해 요소에 값이 포함될 수 있습니다.
groupDtl에서의 property4 반복은 minOccurs 및 maxOccurs 속성을 사용하여 처리됩니다. maxOccurs를 무제한으로 설정하여 무제한으로 반복되도록 할 수 있습니다.
MQRFH2 매개변수를 정의하는 예제 XML 스키마:
<xsd:schema elementFormDefault="qualified"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:rfh="http://www.approuter.com/samples/MQ"
targetNamespace="http://www.approuter.com/samples/MQ">
<xsd:complexType name="MQRFH2PropertyType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="dt" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:element name="NameValueData">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="parameterA">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="property1" type="rfh:MQRFH2PropertyType"/>
<xsd:element name="property2" type="rfh:MQRFH2PropertyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="parameterB">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="groupHeader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="property3" type="rfh:MQRFH2PropertyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="groupDtl">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="property4" type="rfh:MQRFH2PropertyType" minOccurs="1"
maxOccurs="5"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="parameterC">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="groupNew">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="property5" type="rfh:MQRFH2PropertyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="property1" type="rfh:MQRFH2PropertyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>