Hello,
Let us say that I have a schema or complex type like this one below:
Is there a way programtically or a tool to create sample XML file/data for
the schema?. I have number of such complex tpyer/schemas for which I need to
create sample XMLs so I thought of doing it programatically.. Any pointers
would be appreciated.
Thanks.
**********************
<xs:complexType name="AddRequest">
<xs:annotation>
<xs:documentation>
Add a group.
The response is either a SuccessResponse or an ErrorResponse.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Request">
<xs:sequence>
<xs:element name="serviceProviderId" type="xs:string"/>
<xs:element name="groupId" type="xs:string"/>
<xs:element name="defaultDomain" type="xs:string"/>
<xs:element name="userLimit" type="xs:string"/>
<xs:element name="groupName" type="xs:string" minOccurs="0"/>
<xs:element name="callingLineIdName" type="xs:string"
minOccurs="0"/>
<xs:element name="timeZone" type="xs:string" minOccurs="0"/>
<xs:element name="locationDialingCode" type="xs:string"
minOccurs="0"/>
<xs:element name="contact" type="xs:string" minOccurs="0"/>
<xs:element name="address" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
**********************