0
I’m making an Xs xml file generator, but I’m wondering if some parts should be filled.
<xs:element name="identificacao">
<xs:complexType>
<xs:sequence>
<xs:element name="modelo"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="prestador">
<xs:complexType>
<xs:sequence>
<xs:element ref="identificacao"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="solicitacao">
<xs:complexType>
<xs:sequence>
<xs:element ref="prestador" minOccurs="1" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
The model has to be present and cannot be repeated.
The elements provider and solicitation must have the attribute ref= filled?
For example:
1 form for name=template.
1 form for ref=identification.
How many forms you want for ref=provider.
That’s right?
Jobson, to help you (and who else will read this in the future), is that what you want to know? Each request must have n providers. Each provider shall have 1 identification. Each identification shall have 1 model.
– PeerBr