For Programmers: Free Programming Magazines  


Home > Archive > MSDN > September 2005 > Msxml2.FreeThreadedDOMDocument.4.0 Problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Msxml2.FreeThreadedDOMDocument.4.0 Problem
JZYCN2

2005-09-09, 6:55 pm

I am trying to validate my xml file using xsd file and when I use the --> set
xmldoc = CreateObject ("Msxml2.FreeThreadedDOMDocument.4.0") function, I
get the following error
Cannot Create XML Object FreeThreadedDOMDocumen. 13: Type mismatch. Here is
my xml file:
<?xml version='1.0'?>
<Request xmlns="eContractRpt_GMOL_CancelGRS_v1.xsd">
<Inventory inventory_id="1981194" />
<Inventory inventory_id="1234567" />
</Request>

Here is my xsd file:

<?xml version="1.0" ?>
<xs:schema id="eContractRpt_GMOL_CancelGRS_v1"
targetNamespace="x-schema:eContractRpt_GMOL_CancelGRS_v1"
xmlns:mstns="http://tempuri.org/eContractRpt_GMOL_CancelGRS_v1.xsd"
xmlns="http://tempuri.org/eContractRpt_GMOL_CancelGRS_v1.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="Request" msdata:IsDataSet="true"
msdata:EnforceConstraints="True">
<xs:complexType>
<xs:sequence>
<xs:element msdata:IsDataSet="true" msdata:EnforceConstraints="True"
name="InventoryList" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence />
<xs:attribute name="inventory_id" type="xs:integer" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com