Convert dbf to Xsd

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Convert dbf to Xsd

Post by Richard Chidiak »

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
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Convert dbf to Xsd

Post by Silvio.Falconi »

can you post a sample of this file type please
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Convert dbf to Xsd

Post by James Bott »

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
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Convert dbf to Xsd

Post by Richard Chidiak »

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
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Convert dbf to Xsd

Post by karinha »

João Santos - São Paulo - Brasil
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: Convert dbf to Xsd

Post by reinaldocrespo »

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.
Post Reply