W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2002

MSXML vs. XMLSpy validation issue

From: Dent, Andrew <aed5@cdc.gov>
Date: Mon, 29 Apr 2002 18:49:02 -0400 (EDT)
Message-ID: <F0DEEE37B071D211AB210001FA12DAAF05412ED2@mcdc-atl-50.cdc.gov>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hello all,

I am new to XML and am in the process of creating a schema which extends an
existing schema.  I have created the schema and developed xml code that
validates properly in XMLSpy.  However, when validating in MSXML, I receive
this error:  

Element content is invalid according to DTD/schema, expecting buildOption.  

Additionally, the line from the XML file that supplies this data (ex:
<buildOption>configure</buildOption>) is the line that MSXML breaks on.

Any help would be appreciated!

Thanks,

Andy

Here is the schema ...


<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://gis.cdc.gov"
xmlns:gml="http://www.opengis.net/gml"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gth="http://gis.cdc.gov">
	<!-- Import constructs from the GML Feature and Geometry schemas -->
	<import namespace="http://www.opengis.net/gml"
schemaLocation="gml_feature.xsd"/>
	<!--
===================================================================
				XML Notes
				1.  Russian doll design - elements are
defined as needed, or as they appear
				    in other elements.
				2.  Alternatively, "types" can be created.
A type can thought of as a class, and
				    instances of the "class" may be created
elsewhere in the XSD document.
				3.  xsi:schemaLocation - sets the source of
the schema to be validated against.
	
====================================================================== -->
	<!--
====================================================================
				Global element declarations
	
====================================================================== -->
	<element name="View" type="gth:ViewType"/>
	<!--
====================================================================
				Type Definitions
	
====================================================================== -->
	<complexType name="ViewType">
		<complexContent>
			<extension base="gml:AbstractFeatureType">
				<sequence>
					<element name="buildOption"
type="string"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
</schema>






Here is the XML file ...

<?xml version="1.0" encoding="UTF-8"?>
<View xmlns="http://gis.cdc.gov" xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://gis.cdc.gov gthML.xsd">
	<gml:description>andy'smap</gml:description>
	<gml:name>adadsfadsf</gml:name>
	<gml:boundedBy>
		<gml:Box>
			<gml:coord>
				<gml:X>-80</gml:X>
				<gml:Y>35</gml:Y>
			</gml:coord>
			<gml:coord>
				<gml:X>79</gml:X>
				<gml:Y>36</gml:Y>
			</gml:coord>
		</gml:Box>
	</gml:boundedBy>
	<buildOption>configure</buildOption>
</View>















Andrew L. Dent, MA, MBA
Spatial Analysis and Information Dissemination Section
ATSDR
404.498.0407 | adent@cdc.gov
Received on Wednesday, 1 May 2002 04:54:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC