I'm doing an xml file generator xs, but I'm not sure if some parts should be populated.
<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 template must be present and can not be repeated.
Must the provider and request elements have the ref = attribute filled in?
For example:
-
1 form for the name = template.
-
1 form for ref = identification.
-
How many forms do you want for ref = provider.
Is that right?