Home > Blockchain >  How to define global in XSD
How to define global in XSD

Time:10-22

I would like to define TEST as global in XSD

          <xs:element name="TEST">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="TEST_LOGIN" type="xs:string" />
                <xs:element name="DOCUMENT" type="xs:string" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>

CodePudding user response:

Top-level (children of xs:schema) component definitions are inherently globally available.

Nested definitions are only locally available – not referenceable elsewhere.

See also

  • Related