Page 1 of 1
Convert dbf to Xsd
Posted: Mon Dec 02, 2013 8:17 am
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
Re: Convert dbf to Xsd
Posted: Mon Dec 02, 2013 9:04 am
by Silvio.Falconi
can you post a sample of this file type please
Re: Convert dbf to Xsd
Posted: Wed Dec 11, 2013 11:27 pm
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
Re: Convert dbf to Xsd
Posted: Thu Dec 12, 2013 8:36 am
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
Re: Convert dbf to Xsd
Posted: Thu Dec 12, 2013 1:25 pm
by karinha
Re: Convert dbf to Xsd
Posted: Tue Dec 17, 2013 6:45 pm
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.