Hi All,
I have been using eclipse and MS visual studio .net. I am looking for a way to generate a schema based on the input xml. Visual studio generated as shown below. However, is there a way to mention the below properties through GUI.
properties
<xs:whiteSpace value="collapse"></xs:whiteSpace>
<xs:maxLength value="16"></xs:maxLength>
xml
<dsureq>
<request_id>DSUPROFILE4REQ</request_id>
<control_data>12345</control_data>
<plastic_number>1234567890</plastic_number>
<cycle_date>Test</cycle_date>
<echo_common>A</echo_common>
<echo_reposition>0</echo_reposition>
<correlation_id>Test</correlation_id>
</dsureq>
xsd using MS visual studio
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="dsureq">
<xs:complexType>
<xs:sequence>
<xs:element name="request_id" type="xs:string" />
<xs:element name="control_data" type="xs:unsignedShort" />
<xs:element name="plastic_number" type="xs:unsignedInt" />
<xs:element name="cycle_date" type="xs:string" />
<xs:element name="echo_common" type="xs:string" />
<xs:element name="echo_reposition" type="xs:unsignedByte" />
<xs:element name="correlation_id" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>