XMLTOCURSOR('c:\temp\tmpallbillingtypes.xml', 'xml_product')this is how the xml file looks like:
<?xml version="1.0" encoding="UTF-8"?> <root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:od="urn:schemas-microsoft-com:officedata"> <xsd:schema> <xsd:element name="dataroot"> <xsd:complexType> <xsd:sequence> <xsd:element ref="tmpallbillingtypes" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="generated" type="xsd:dateTime"/> </xsd:complexType> </xsd:element> <xsd:element name="tmpallbillingtypes"> <xsd:annotation> <xsd:appinfo/> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="c" minOccurs="1" od:jetType="text" od:sqlSType="nvarchar" od:nonNullable="yes"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="5"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="d" minOccurs="1" od:jetType="memo" od:sqlSType="ntext" od:nonNullable="yes"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="536870910"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="q" minOccurs="0" od:jetType="memo" od:sqlSType="ntext"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="536870910"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="cnt" minOccurs="0" od:jetType="decimal" od:sqlSType="decimal"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="10"/> <xsd:fractionDigits value="0"/> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> <dataroot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated="2005-08-03T12:18:58"> <tmpallbillingtypes> <c>B1</c> <d>EU Rebate cred note</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>B2</c> <d>EU Rebate correction</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>B3</c> <d>Rebate Part Settlmnt</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>B4</c> <d>Rebate Manual Accrls</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>BK1</c> <d>Debit Memo Agreemnt</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>BK3</c> <d>Debit Memo Agreemnt</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>BM1</c> <d>Debit Memo Agreemnt</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>BM3</c> <d>Debit Memo Agreemnt</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>BV</c> <d>Cash Sale</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>CO</c> <d>Comm.Adjustment (FI)</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>DA</c> <d>Duty Adjustment (FI)</d> </tmpallbillingtypes> <tmpallbillingtypes> <c>F1</c> <d>EU Invoice</d> <q>Excluded by billing type</q> <cnt>1</cnt> </tmpallbillingtypes> <tmpallbillingtypes> <c>F2</c> <d>EU Invoice</d> <q>Included by Billing type</q> <cnt>327</cnt> </tmpallbillingtypes> </dataroot> </root>Thanks in advance,
>> XMLTOCURSOR('c:\temp\tmpallbillingtypes.xml', 'xml_product') >>>>I get the following message:
>>loXMLAdapter = CREATEOBJECT("XMLAdapter") >>loxmladapter.LoadXML('c:\temp\tmpallbillingtypes.xml') >>>>I get the same error.