Using XML Enumerations with Delphi XML Data Binding Wizard -


I have an XML schema that uses enumeration, but when I look at the XML XML of XML XML in Delphi , Then the calculated restriction is dropped. Is there any way to generate Delphi anion and make it into an object?

XSD Snippet:

  & lt; Xs: simpleType name = "enumType" final = "ban" & gt; & Lt; Xs: ban base = "xs: nmtoken" & gt; & Lt; Xs: calculation value = "each" /> & Lt; Xs: calculation value = "units" /> & Lt; Xs: calculation value = "region" /> & Lt; Xs: calculation value = "payroll" /> & Lt; Xs: calculation value = "sales" /> & Lt; Xs: calculation value = "total cost" /> & Lt; Xs: calculation value = "other" /> & Lt; / XS: Ban & gt; & Lt; / XS: simpleType & gt;  

I hope to see Delphi, which is an area that accepts ANIM, which is generated by XML, after which it is converted into a DRofring string, but it The field is just a simple string. / P>

What you can do to create your own enumerated type with the same string constants as the name GetEnumValue and GetEnumString with Unit TypInfo function allows you to prefix names with some small letters such as other Delphi codes:

  Value: = TMyEnum (GetEnumValue (TMyEnum) , Prefix + estherning))  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -