Computers, Technology and Information Systems


XML - eXtensible Markup Language - COIN 78


These presentations give an overview of namespaces as used in XML Schema and to validate XML documents.

Using Name spaces in XML - An introduction to namespaces.

Namespaces, Schemas, and Validation - Using namespaces and schemas to validate XML


Chapter 8, Using Namespaces in XML

The files in this section are in the namespaces folder. Note that no Schema files are given for the latter examples... we don't get to validating XML files that use namespaces until the next chapter. If there is sufficient interest, I could work out the appropriate schema files. Let me know.

Page Section Code
113 Using Namespaces in XML

Figure 8.1: rivers.xsd (rivers.xml)

Figure 8.2: global_endspecies.xsd (global_endspecies.xml)

115 Declaring Default Namespaces

Figure 8.4: default1.xml

Figure 8.5: default2.xml

116-117 Namespaces for Individual Elements

Figures 8.6 and 8.7: individual.xml

Figure 8.8: individual2.xml

Chapter 9, Namespaces, Schemas, and Validation

The files in this section are in the namespaces_sv folder.

Page Section Code
123 Populating a Namespace

populating.xsd (populating.xml, if you insist)

124 Adding All Locally Declared Elements

locally_declared.xsd

125 Adding Particular Locally Declared Elements

locally_declared2.xsd

126-127 Referencing Components with Namespaces

Figure 9.4: referencing_namespaces.xsd
(referencing_namespaces.xml, for the impatient)

Figure 9.5: referencing_namespaces2.xsd
(referencing_namespaces2.xml, for the impatient)

128 The Schema of Schemas as the Default referencing_namespaces3.xsd (referencing_namespaces3.xml, for the impatient)
129 Namespaces and Validating XML validating.xml (you can validate this file with referencing_namespaces.xsd if you like by typing in both URLs--first the xml then the xsd--in the XSV)
130 Indicating Where a Schema Is location.xml (referencing_namespaces.xsd)
131 Schemas in Multiple Files threats.xsd, include.xsd (and then use include.xml as an instance)
132 Importing Components import.xsd, rivers_import.xsd (not rivers.xsd), and then import.xml as an instance. Note the errata resolved in the notes here.

 


Click here to return to the course outline.

Last revision September 10, 2001

http://www.informaticus.org/COIN78/week7/index.htm