No, There is no external schema. The only XML I'm using is what I pasted into the first message. I'll repeat it here for anyone that missed the first message. By the way, I get the same error in D6 and D7 (don't have 2005 to play with).
This is the XML I'm attempting to transform <?xml version="1.0" standalone="yes" ?> - <ERRORS> - <ERROR> <ERRORNUMBER>551</ERRORNUMBER> <ERRORMESSAGE>You last accessed this system less than 2 minutes ago. Your query has been terminated, and the attempt has been logged...</ERRORMESSAGE> <ERRORDETAIL>CarrierID=16318</ERRORDETAIL> </ERROR> </ERRORS And this is the code: dmResponder.XMLTransform.SourceXMLFile := 'C:\OpenShipments.xml'; dmResponder.XMLTransform.TransformationFile := 'C:\Development\NLMResponder\OpenShipmentsErrorToDataPacket.xtr'; dmResponder.cdsOpenShipmentErrors.Data := dmResponder.XMLTransform.Data; The Transformation works perfectly in the XML Mapper utility, then I save it and try to use the code above and get an invalid Data Packet error. This particular transformation file is fairly simple so I've also pasted it below in case that helps anyone help me :) <XmlTransformation Version="1.0"><Transform Direction="ToCds"><SelectEach dest="DATAPACKET\ROWDATA\ROW" from="\ERRORS\ERROR"><Select dest="@ErrorNumber" from="\ERRORNUMBER"/><Select dest="@ErrorMessage" from="\ERRORMESSAGE"/><Select dest="@ErrorDetail" from="\ERRORDETAIL"/></SelectEach></Transform><XmlSchema RootName="ERRORS"><![CDATA[<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ERRORS" type="ERRORSType"/> <xs:complexType name="ERRORSType"> <xs:sequence> <xs:element name="ERROR" type="ERRORType"/> </xs:sequence> </xs:complexType> <xs:element name="ERROR" type="ERRORType"/> <xs:complexType name="ERRORType"> <xs:sequence> <xs:element name="ERRORNUMBER" type="ERRORNUMBERType"/> <xs:element name="ERRORMESSAGE" type="ERRORMESSAGEType"/> <xs:element name="ERRORDETAIL" type="ERRORDETAILType"/> </xs:sequence> </xs:complexType> <xs:element name="ERRORNUMBER" type="ERRORNUMBERType"/> <xs:simpleType name="ERRORNUMBERType"> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:element name="ERRORMESSAGE" type="ERRORMESSAGEType"/> <xs:simpleType name="ERRORMESSAGEType"> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:element name="ERRORDETAIL" type="ERRORDETAILType"/> <xs:simpleType name="ERRORDETAILType"> <xs:restriction base="xs:string"/> </xs:simpleType> </xs:schema>]]></XmlSchema><CdsSkeleton/><XslTransform/><Skeleton><![CDA TA[<?xml version="1.0"?><DATAPACKET Version="2.0"><METADATA><FIELDS><FIELD attrname="ErrorNumber" fieldtype="i4"/><FIELD attrname="ErrorMessage" fieldtype="string" WIDTH="255"/><FIELD attrname="ErrorDetail" fieldtype="string" WIDTH="255"/></FIELDS><PARAMS/></METADATA><ROWDATA/><METADATA><FIELDS><F IELD attrname="ErrorNumber" fieldtype="i4"/><FIELD attrname="ErrorMessage" fieldtype="string" WIDTH="255"/><FIELD attrname="ErrorDetail" fieldtype="string" WIDTH="255"/></FIELDS><PARAMS/></METADATA><ROWDATA/></DATAPACKET> ]]></Skeleton></XmlTransformation> Sincerely, Brad Gies ------------------------------------- NLM Software Southfield, MI, USA ------------------------------------- > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:delphi-talk- > [EMAIL PROTECTED] On Behalf Of Bob Swart > Sent: Sunday, October 02, 2005 1:54 PM > To: Delphi-Talk Discussion List > Subject: Re: XML Transform > > Hi Brad, > > > Can anyone tell me why the following is giving me an Invalid Data Packet > > error. > > It looks like you're doing an external request - perhaps your > OpenShipments.xml refers to an external schema (stored somewhere else?) > > > Brad Gies > > Groetjes, > Bob Swart (aka Dr.Bob - www.DrBob42.com) > > -- > Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner > Delphi 2005 PDF manuals available from http://www.drbob42.com/training > __________________________________________________ > Delphi-Talk mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi-talk This e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this message in error, please contact the sender immediately and delete the material from your computer. __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
