Re:ADO Recordset and XML DOM
ADODB and ADOInt modules in Delphi 5 are based on
ADO 2.1, while saving to streams was only added
to ADO in version 2.5. I have not seen patches
from Borland that would upgrade their
implementation to 2.5.
If you import ADO 2.5, Delphi will create
ADODB_TLB file which you can browse to see all
the differences.
Your options are: patch ADODB and ADOInt to match
ADO 2.5, or wait for Borland to issue a patch.
I'm in exactly same position as you are, trying
to save ADO Recordset into XML without using
external files, and I'm currently considering
same options.
-Anatoli
In article <39638e99@dnews>,
"Pierre Greborio" <pie...@pierregreborio.it>
wrote:
Quote
> > Do you have a link to where you saw that
article? The Save method as
Quote
> defined in
> > the ADO 2.1 interface only takes a WideString
filename parameter. I think
Quote
> you
> > have to use a variant dispatch to get it to
work.
> > try:
> > Variant(rs).Save(xmlObj, adPersistXML);
> It doesn't works...type mismatch. I think
that's an ADO 2.5 feature.
Quote
> The article ai found on MSDN library to
> mk:@MSITStore:C:\Program%20Files\Microsoft%
20Visual%20Studio\MSDN\2000APR\10
Quote
> 33. Looks with search to "recordset and DOM".
> Pierre
Sent via Deja.com http://www.deja.com/
Before you buy.