How do I use the 1.1 XML Schema definition?
This is what I'm starting with:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="object"></xs:element>
</xs:schema>
To create the schema we could simply follow the structure in the XML document and define each element as we find it. We will start with the standard XML declaration followed by the xs:schema element that defines a schema: <? xml version="1.0" encoding="UTF-8" ?>
To edit a fileSelect the Use XML editor to view and edit the underlying XML Schema file link on the Start View. The XML editor appears with the new file open. Copy the XML Schema sample code from Purchase order schema and paste it to replace the code that was added to the new XSD file by default.
There's nothing in the schema document itself that indicates whether it's a 1.0 or a 1.1 schema. (Other than a nice big comment at the start, of course.) You just have to make sure that you invoke a 1.1 XSD processor if the schema uses any 1.1 features.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With