Understanding the XML Schema File

Now that you have familiarized yourself with the structure of an XML document, let's look at another type of XML file that was created by Access during the export to XML process — the XML schema file (XSD).

Schema files describe XML data using the XML Schema Definition (XSD) language and allow the XML parser to validate the XML document. An XML document that conforms to the structure of the schema is said to be valid.

Here are some examples of the type of information that can be found in an XML schema file:

■ Elements that are allowed in a given XML document

■ Data types of allowed elements

■ Number of allowed occurrences of a given element

■ Attributes that can be associated with a given element

■ Default values for attributes

■ Child elements of other elements

■ The sequence and number of child elements

0 0

Post a comment