Good morning
Is there a class that allows to convert data to xsd format ?
If anyone has a sample to share,
Thank you
Richard
Convert dbf to Xsd
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: Convert dbf to Xsd
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
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: Convert dbf to Xsd
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
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
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: Convert dbf to Xsd
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
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
João Santos - São Paulo - Brasil
- reinaldocrespo
- Posts: 918
- Joined: Thu Nov 17, 2005 5:49 pm
- Location: Fort Lauderdale, FL
Re: Convert dbf to Xsd
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.
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.