Converting XML do cuments into data packets的问题?(急)(100分)

  • 主题发起人 fantasy4u
  • 开始时间
F

fantasy4u

Unregistered / Unconfirmed
GUEST, unregistred user!
把XML转换成ClientDataSet
用delphi/Demos/Internet/XMLTransformProvider的例子那种方法
在本机和一些机器上正确
但是到有的机器上一旦打开ClientDataSet
出现Insufficient memory for this operation
的错误
请问大概是怎么问题


ToDp.xtr

<XmlTransformation Version="1.0"><Transform Direction="ToCds" DataEncoding="gb2312"><SelectEach dest="DATAPACKET/ROWDATA/ROW" from="/ProgressReport/Progress"><Select dest="@GoverningBody" from="/GoverningBody"/><Select dest="@CutOffDate" from="/CutOffDate"/><Select dest="@CorpName" from="/CorpName"/><Select dest="@CorpProperty" from="/CorpProperty"/><Select dest="@Content" from="/Content"/><Select dest="@ProjectID" from="/ProjectID"/><Select dest="@BeginDate" from="/BeginDate"/><Select dest="@TotalInvest" from="/TotalInvest"/><Select dest="@Loan" from="/Loan"/><Select dest="@ForeignExchange" from="/ForeignExchange"/><Select dest="@LastYearInvest" from="/LastYearInvest"/><Select dest="@LastYearFE" from="/LastYearFE"/><Select dest="@InvestPlan" from="/InvestPlan"/><Select dest="@InvestFinish" from="/InvestFinish"/><Select dest="@FEUsed" from="/FEUsed"/><Select dest="@IncreasedSale" from="/IncreasedSale"/><Select dest="@IncreasedGain" from="/IncreasedGain"/><Select dest="@IncreasedTex" from="/IncreasedTex"/><Select dest="@IncreasedFE" from="/IncreasedFE"/><Select dest="@BuildAcreage" from="/BuildAcreage"/><Select dest="@EndDate" from="/EndDate"/><Select dest="@Memo" from="/Memo"/><Select dest="@Principal" from="/Principal"/><Select dest="@Recorder" from="/Recorder"/><Select dest="@Tel" from="/Tel"/></SelectEach></Transform><XmlSchema RootName="ProgressReport"><![CDATA[<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="ProgressReport">
<xs:complexType>
<xs:sequence>
<xs:element name="Progress" type="ProgressType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="ProgressType">
<xs:sequence>
<xs:element name="GoverningBody" type="xs:string" nillable="false"/>
<xs:element name="CutOffDate" type="xs:gYearMonth" nillable="false"/>
<xs:element name="CorpName" type="xs:string" nillable="false"/>
<xs:element name="CorpProperty" type="xs:string" nillable="true"/>
<xs:element name="Content" type="xs:string" nillable="true"/>
<xs:element name="ProjectID" type="xs:string" nillable="false"/>
<xs:element name="BeginDate" type="xs:date" nillable="true"/>
<xs:element name="TotalInvest" type="xs:double" nillable="true"/>
<xs:element name="Loan" type="xs:double" nillable="true"/>
<xs:element name="ForeignExchange" type="xs:double" nillable="true"/>
<xs:element name="LastYearInvest" type="xs:double" nillable="true"/>
<xs:element name="LastYearFE" type="xs:double" nillable="true"/>
<xs:element name="InvestPlan" type="xs:double" nillable="true"/>
<xs:element name="InvestFinish" type="xs:double" nillable="true"/>
<xs:element name="FEUsed" type="xs:double" nillable="true"/>
<xs:element name="IncreasedSale" type="xs:double" nillable="true"/>
<xs:element name="IncreasedGain" type="xs:double" nillable="true"/>
<xs:element name="IncreasedTex" type="xs:double" nillable="true"/>
<xs:element name="IncreasedFE" type="xs:double" nillable="true"/>
<xs:element name="BuildAcreage" type="xs:double" nillable="true"/>
<xs:element name="EndDate" type="xs:date" nillable="true"/>
<xs:element name="Memo" type="xs:string" nillable="true"/>
<xs:element name="Principal" type="xs:string" nillable="true"/>
<xs:element name="Recorder" type="xs:string" nillable="true"/>
<xs:element name="Tel" type="xs:string" nillable="true"/>
</xs:sequence>
</xs:complexType>
</xs:schema>]]></XmlSchema><CdsSkeleton/><XslTransform/><Skeleton><![CDATA[<?xml version="1.0"?><DATAPACKET Version="2.0"><METADATA><FIELDS><FIELD attrname="CutOffDate" fieldtype="dateTime"/><FIELD attrname="CorpName" fieldtype="string" WIDTH="400"/><FIELD attrname="CorpProperty" fieldtype="string" WIDTH="100"/><FIELD attrname="Content" fieldtype="bin.hex" SUBTYPE="Text"/><FIELD attrname="ProjectID" fieldtype="string" WIDTH="100"/><FIELD attrname="BeginDate" fieldtype="dateTime"/><FIELD attrname="TotalInvest" fieldtype="r8"/><FIELD attrname="Loan" fieldtype="r8"/><FIELD attrname="ForeignExchange" fieldtype="r8"/><FIELD attrname="LastYearInvest" fieldtype="r8"/><FIELD attrname="LastYearFE" fieldtype="r8"/><FIELD attrname="InvestPlan" fieldtype="r8"/><FIELD attrname="InvestFinish" fieldtype="r8"/><FIELD attrname="FEUsed" fieldtype="r8"/><FIELD attrname="IncreasedSale" fieldtype="r8"/><FIELD attrname="IncreasedGain" fieldtype="r8"/><FIELD attrname="IncreasedTex" fieldtype="r8"/><FIELD attrname="IncreasedFE" fieldtype="r8"/><FIELD attrname="BuildAcreage" fieldtype="r8"/><FIELD attrname="EndDate" fieldtype="dateTime"/><FIELD attrname="Memo" fieldtype="bin.hex" SUBTYPE="Text"/><FIELD attrname="GoverningBody" fieldtype="string" WIDTH="100"/><FIELD attrname="Principal" fieldtype="string" WIDTH="100"/><FIELD attrname="Recorder" fieldtype="string" WIDTH="100"/><FIELD attrname="Tel" fieldtype="string" WIDTH="100"/><FIELD attrname="State" fieldtype="string" WIDTH="4"/></FIELDS><PARAMS/></METADATA><ROWDATA/><METADATA><FIELDS><FIELD attrname="CutOffDate" fieldtype="dateTime"/><FIELD attrname="CorpName" fieldtype="string" WIDTH="400"/><FIELD attrname="CorpProperty" fieldtype="string" WIDTH="100"/><FIELD attrname="Content" fieldtype="bin.hex" SUBTYPE="Text"/><FIELD attrname="ProjectID" fieldtype="string" WIDTH="100"/><FIELD attrname="BeginDate" fieldtype="dateTime"/><FIELD attrname="TotalInvest" fieldtype="r8"/><FIELD attrname="Loan" fieldtype="r8"/><FIELD attrname="ForeignExchange" fieldtype="r8"/><FIELD attrname="LastYearInvest" fieldtype="r8"/><FIELD attrname="LastYearFE" fieldtype="r8"/><FIELD attrname="InvestPlan" fieldtype="r8"/><FIELD attrname="InvestFinish" fieldtype="r8"/><FIELD attrname="FEUsed" fieldtype="r8"/><FIELD attrname="IncreasedSale" fieldtype="r8"/><FIELD attrname="IncreasedGain" fieldtype="r8"/><FIELD attrname="IncreasedTex" fieldtype="r8"/><FIELD attrname="IncreasedFE" fieldtype="r8"/><FIELD attrname="BuildAcreage" fieldtype="r8"/><FIELD attrname="EndDate" fieldtype="dateTime"/><FIELD attrname="Memo" fieldtype="bin.hex" SUBTYPE="Text"/><FIELD attrname="GoverningBody" fieldtype="string" WIDTH="100"/><FIELD attrname="Principal" fieldtype="string" WIDTH="100"/><FIELD attrname="Recorder" fieldtype="string" WIDTH="100"/><FIELD attrname="Tel" fieldtype="string" WIDTH="100"/><FIELD attrname="State" fieldtype="string" WIDTH="4"/></FIELDS><PARAMS/></METADATA><ROWDATA/></DATAPACKET>
]]></Skeleton></XmlTransformation>

test.xml
<?xml version="1.0" encoding="gb2312"?>
<ProgressReport><Progress><GoverningBody>下城局经贸局</GoverningBody><CutOffDate>20020801</CutOffDate><CorpName>东风杭州汽车有限公司</CorpName><CorpProperty></CorpProperty><Content>高档大中型客车。引进高档客车车身技术,购置冲压、制件、检测等设备。改造后,年产高档大中型客车500辆</Content><ProjectID>[2002]3</ProjectID><BeginDate></BeginDate><TotalInvest>0</TotalInvest><Loan>0</Loan><ForeignExchange>0</ForeignExchange><LastYearInvest></LastYearInvest><LastYearFE></LastYearFE><InvestPlan>122</InvestPlan><InvestFinish>22</InvestFinish><FEUsed>22</FEUsed><IncreasedSale>0</IncreasedSale><IncreasedGain>0</IncreasedGain><IncreasedTex></IncreasedTex><IncreasedFE>0</IncreasedFE><BuildAcreage>0</BuildAcreage><EndDate></EndDate><Memo></Memo><Principal></Principal><Recorder></Recorder><Tel></Tel></Progress></ProgressReport>
 
内存不足!
XML解析器版本是不是新的。
为什么要用 XTR,好象不提倡!
 
顶部