|
XML.HTMLTeacher.Com
[Search] [Contact] [Sitemap] |
XML
[Main] [Schema] [Validating the XML document against the Schema] |
|
[Classes]
[XHTML] [XML] [CSS] [Design] [Programming] [Marketing] |
|
| The XML Document |
|
<RootElement xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://www.domainname/folder/schema_name.xsd"> Example <employees xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../employees/employees_schema.xsd"> Explanation: states that the elements defined in the schema belong to the namespace of http://www.w3.org/2001/XMLSchema-instance. "../employees/employees_schema.xsd" states that the XML document will use the schema located at this address to be validated against.
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"> Explanation: states that all the schema elements are to be prefixed with xsd. The prefix xsd: is used by convention to identify schema elements.
xsi:noNamespaceSchemaLocation= "http://www.domainname/folder/schema_name.xsd" Example xsi:noNamespaceSchemaLocation= "../employees/employees_schema.xsd"> |
| All materials, tutorials and content are copyrighted by HTMLTeacher.Com.
Any use of any material, tutorials and/or content provided by this site is prohibited without expressed written consent of the author. Copyright ©2003 HTMLTeacher.Com and Sonia Weimann
|