FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Convert dbf to Xsd
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Convert dbf to Xsd
Posted: Mon Dec 02, 2013 08:17 AM

Good morning

Is there a class that allows to convert data to xsd format ?

If anyone has a sample to share,

Thank you

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Convert dbf to Xsd
Posted: Mon Dec 02, 2013 09:04 AM

can you post a sample of this file type please

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Convert dbf to Xsd
Posted: Wed Dec 11, 2013 11:27 PM
An XSD file doesn't contain data but rather the format of the data. You could possibly create an XSD file from the structure of a DBF if that is what you are looking for.

The data would be in an XML file and the data format in an XSD file.

For more info see:

http://www.w3schools.com/schema/schema_example.asp

I have never worked with XSD files, so I can't offer any practical experiences.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Convert dbf to Xsd
Posted: Thu Dec 12, 2013 08:36 AM

James

I did not mean data (my mistake) but structure, i wondered if there was a utility.

It is ok i generated the xsd file , it was urgent for me.

The xml file was adapted accordingly.

Regards

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Convert dbf to Xsd
Posted: Thu Dec 12, 2013 01:25 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: Convert dbf to Xsd
Posted: Tue Dec 17, 2013 06:45 PM

Richard,

Hi. I think it wouldn't be too complicated to create any xsd from a dbf structure using TXmlDocument() class. It will allow you to create just about any indented style tagged document. Take a look at TXmldocument() and TxmlNode() classes from the xharbour documentation. On one of the samples, they show how to export a .dbf structure to xml -and I don't think it would take much of a stretch to write xsd compatible document instead.

Reinaldo.

Continue the discussion