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!



Here is the schema ...

<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://gis.cdc.gov"
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"
				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">
			<extension base="gml:AbstractFeatureType">
					<element name="buildOption"

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"
xsi:schemaLocation="http://gis.cdc.gov gthML.xsd">

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:01 UTC