XML databases

Transcription

XML databases
XML databases - exercises
0036000001_en.xsd is the XML schema for the XML document 0036000001_en.xml.
Similar, 0036000001WNS_en.xsd is the XML schema for the XML document
0036000001WNS_en.xml. WNS is the acronym for „with namespaces“. In this Schema the use of
namespaces is demonstrated. Pay attention to targetNamespace in XML schema and
schemaLocation in XML document. Also, note usage of namespaces in XPath expressions in selector
and field while defining primary and foreign key constraints.
The validity of XML documents can be checked by using for example some XML editor. One that you
can use freely is a free edition of EditX http://www.freexmleditorsite.com/download.html. Also you
can download and install for example trial edition of Oxigen http://oxygenxml.com/download.html.
To be accessible during the validation of XML documents, place xsd files in the same folder as the
XML documents. The alternative is to set attribute values of noNamespaceSchemaLocation in the
0036000001_en.XML file and schemaLocation in 0036000001WNS_en.xml file to specify the
absolute path to the associated XSD document.

Documents pareils