[
]
不是所有能在IE里正常显示的XML文件都能被ADOTable Load的。
你得声明命名空间和Schema,看看AdoTable1.SaveToFile('C:/temp.xml',pfXML);的结果
[blue]
- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <s:Schema id="RowsetSchema">
- <s:ElementType name="row" content="eltOnly" rs:updatable="true">
- <s:AttributeType name="id" rs:number="1" rs:writeunknown="true"
rs:basecatalog="sse" rs:basetable="test" rs:basecolumn="id"
rs:keycolumn="true">
<s:datatype dt:type="int" dt:maxLength="4" rs
recision="10"
rs:fixedlength="true" rs:maybenull="false" />
</s:AttributeType>
- <s:AttributeType name="name" rs:number="2" rs:nullable="true"
rs:writeunknown="true" rs:basecatalog="sse" rs:basetable="test"
rs:basecolumn="name">
<s:datatype dt:type="string" rs:dbtype="str" dt:maxLength="10"
rs:fixedlength="true" />
</s:AttributeType>
<s:extends type="rs:rowbase" />
</s:ElementType>
</s:Schema>
- <rs:data>
<z:row id="1" name="陈真" />
<z:row id="2" name="霍元甲" />
<z:row id="3" name="流氓一" />
</rs:data>
</xml>
[/blue]