Proper XML schema for XML files only using a default namespace
Manfred Sturm <[email protected]> Thu, 23 Jan 2003 01:28:00 -0700
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi
I'm struggling in defining a proper XML schema for following XML file:
<?xml version="1.0" encoding="UTF-8"?>
<VisioDocument xmlns="urn:schemas-microsoft-com:office:visio">
</VisioDocument>
E.g. XMLSpy suggests the XML schema:
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSPY v5 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="VisioDocument">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
Validation of the XML file returns the error:
"Root element of document 'vd.xml' is not defined in schema document or part of wrong namespace"
I guess the second assumption is correct, but is there somebody to make a better job than XMLSpy?
Thanx
Manfred
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.