FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper What does the XML record mean?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

What does the XML record mean?

Posted: Tue Aug 01, 2006 09:04 AM

Dear All,

I would like to know XML record and how to write it.

Best regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: What does the XML record mean?

Posted: Tue Aug 01, 2006 10:05 AM
This is an easy way:

#define adOpenForwardOnly 0
#define adOpenKeyset      1
#define adOpenDynamic     2
#define adOpenStatic      3

#define adLockReadOnly        1
#define adLockPessimistic     2
#define adLockOptimistic      3
#define adLockBatchOptimistic 4

#define adPersistXML 1


FUNCTION MAIN()

    LOCAL oRs := CREATEOBJECT( "ADODB.Recordset" )

    FERASE( "TEST.XML" )

    oRs:Open( "SELECT * FROM Test", "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\xharbour; Extended Properties=DBASE III", adOpenForwardOnly, adLockReadOnly )

    oRs:Save( "TEST.XML", adPersistXML )

    oRs:Close()

    RETURN NIL


EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

What does the XML record mean?

Posted: Tue Aug 01, 2006 05:59 PM

Enrico,

Is this reading a Jet database or a DBF?

Is this for xHarbour only or will it run under Harbour also?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

What does the XML record mean?

Posted: Tue Aug 01, 2006 06:01 PM

Dutch,

There is a DBF to XML conversion program written in Clipper on my website (see button below).

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

What does the XML record mean?

Posted: Tue Aug 01, 2006 06:06 PM
James Bott wrote:Enrico,

Is this reading a Jet database or a DBF?


A DBF.

James Bott wrote:Is this for xHarbour only or will it run under Harbour also?


Also for Harbour but you will need to link hbole.lib and use TOleAuto():New() instead of CREATEOBJECT().

EMG
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Thanks a lot

Posted: Wed Aug 02, 2006 04:03 PM

Dear Enrico & James,

Thanks a lot and I will try it.

Best regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion