Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error loading XML
Message
From
13/10/2004 14:21:24
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Error loading XML
Miscellaneous
Thread ID:
00951154
Message ID:
00951154
Views:
55
Hi All

I am getting this error loading xml that is create from the toXML() method. I have no idea how to fix this. Details to follow. Any help will be very much appreciated.

Thanks
110
XML Error: XML Parse error: The element 'VFPDataSet' is used but not declared in the DTD/Schema.
 Line 2, Position 141.   <VFPDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNames
XML Parse error: The element 'VFPDataSet' is used but not declared in the DTD/Schema.
 Line 2, Position 141.   <VFPDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaL
Here is the XML
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="d:\projects\varient\client\cr_formenv.xsd">
	<afrm_products_pref>
		<ckey>form</ckey>
		<cobjref>top</cobjref>
		<cvalue>-4</cvalue>
		<ctype>N</ctype>
	</afrm_products_pref>
	<afrm_products_pref>
		<ckey>form</ckey>
		<cobjref>left</cobjref>
		<cvalue>2</cvalue>
		<ctype>N</ctype>
	</afrm_products_pref>
	<afrm_products_pref>
		<ckey>form</ckey>
		<cobjref>height</cobjref>
		<cvalue>324</cvalue>
		<ctype>N</ctype>
	</afrm_products_pref>
	<afrm_products_pref>
		<ckey>form</ckey>
		<cobjref>width</cobjref>
		<cvalue>672</cvalue>
		<ctype>N</ctype>
	</afrm_products_pref>
	<afrm_products_pref>
		<ckey>form</ckey>
		<cobjref>windowstate</cobjref>
		<cvalue>0</cvalue>
		<ctype>N</ctype>
	</afrm_products_pref>
</VFPDataSet>
and here is the XSD
	<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
	<VFPDataSet>
		<xsd:schema id="VFPDataSet" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
			<xsd:element name="VFPDataSet" msdata:IsDataSet="true">
				<xsd:complexType>
					<xsd:choice maxOccurs="unbounded">
						<xsd:element name="rm_products_pref" minOccurs="0" maxOccurs="unbounded">
							<xsd:complexType>
								<xsd:sequence>
									<xsd:element name="ckey">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:maxLength value="200"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:element>
									<xsd:element name="cobjref">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:maxLength value="200"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:element>
									<xsd:element name="cvalue">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:maxLength value="200"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:element>
									<xsd:element name="ctype">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:maxLength value="1"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:element>
								</xsd:sequence>
							</xsd:complexType>
						</xsd:element>
					</xsd:choice>
					<xsd:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="lax"/>
				</xsd:complexType>
			</xsd:element>
		</xsd:schema>
	</VFPDataSet>
Next
Reply
Map
View

Click here to load this message in the networking platform