same data for elements in xml

Marty1881

New Member
I am creating an xml with xsd. I need the same data for 2 elements in the xml. Data of element 'Ext' and 'Int' need to be the same. I am referring it to the same type, but each time different value is getting generated. This is my code....\[code\]<xs:element name="data" maxOccurs="unbounded"><xs:complexType><xs:sequence><xs:element name="Ext" type="ext-type" /><xs:element name="Int" type="ext-type" /><xs:element name="ac" type="ac-type" /></xs:sequence></xs:complexType></xs:element>...<xs:simpleType name="ext-type"><xs:restriction base="xs:string"><xs:minInclusive value="http://stackoverflow.com/questions/10492661/0" /><xs:totalDigits value="http://stackoverflow.com/questions/10492661/7" /><xs:pattern value="http://stackoverflow.com/questions/10492661/[9]{1}/-[4]{3}/-[5-9]{3}"></xs:pattern></xs:restriction></xs:simpleType>\[/code\]Can any one please guide me on this.
 
Back
Top