Anyone that has a partial XSD that describes the METADATA section of Delphi TClientDataSet XML files? -


I know that you can not fully describe XML that TClientDataSet with XSD schema, as in ROW elements , Have names of

However, such an XML should have a METADATA section.

So: Is there a (partial) XSD that describes the metadata part XML can be saved with Delphi TClientDataSets?

Regards.

PS:

XML-> XSD Conversion Tool / Thanks for the hint for sites; I should have written that I did the same myself, but in order to create an appropriate XSD (i.e. which includes all the possibilities), it would be necessary to use an input XML which would be possible for all possibilities (such as RoundTritt, Aristat Etc.). I will try to come up with a decent XSD in that way and post it here.

Good I did not find any, so I used to generate this schema based on clientDetacet XML file.

  & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xs: schema xmlns: xs = "http://www.w3.org/2001/XMLSchema" & gt; & Lt; Xs: element name = "datapacket" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element riff = "metadata" /> & Lt; Xs: element riff = "ROWDATA" /> & Lt; / XS: sequence & gt; & Lt; Xs: attribute name = "version" type = "xs: NMTOKEN" = "required" /> & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "FIELD" & gt; & Lt; XS: complexType & gt; & Lt; Xs: attribute name = "field type" type = "xs: NMTOKEN" = "required" /> & Lt; Xs: use attribute name = "WIDTH" type = "xs: NMTOKEN" = "optional" /> & Lt; Xs: attribute name = "attrname" type = "xs: NMTOKEN" = "required" /> & Lt; Xs: attribute name = "required" type = "xs: NMTOKEN" = "optional" /> & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "FIELDS" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element riff = "FIELD" maxOccurs = "unbounded" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "metadata" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element ref = "FIELDS" /> & Lt; Xs: element ref = "PARAMS" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "PARAMS" & gt; & Lt; XS: complexType & gt; & Lt; Xs: attribute name = "CHANGE_LOG" type = "xs: string" = "required" /> & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "ROW" & gt; & Lt; XS: complexType & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "ROWDATA" & gt; & Lt; XS: complexType & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element riff = "ROW" maxOccurs = "unbounded" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; / XS: Schema & gt;  

Comments