- From: jum <sirrat_k@hotmail.com>
- Date: Tue, 14 May 2002 18:32:45 -0700
- To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
Received on Wednesday, 15 May 2002 02:38:54 UTC
Example
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
file : note.xsd
<?xml version="1.0"?>
<note
xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3schools.com note.xsd">
<to11111>Tove</to11111>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
file: *.xml
Why do not check that it have show error when use Editor check
Received on Wednesday, 15 May 2002 02:38:54 UTC