Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
We have seen many how options we have to tailor a .NET class to
the format of an XML type. If you are developing an application to bind XML
data in a format described by an XML schema then you are in luck because you
can create the classes corresponding to the schema types with the XSD tool
discussed in Appendix C. However, there are quite a few alternative format
description languages for XML out there that the XSD tool cannot convert into
classes, DTDs and Relax-NG for example. If you need to develop classes to map
types from schema formats other than XSD and XDR then this section is for you!
It is intended to provide quick answers to “What attribute do I need to map
this code to my XML”-type questions when you have to develop serialization
classes “by hand”. The left column shows C# code fragments with serialization
attributes for class definitions, the right column shows how the XmlSerializer
maps this code construct to XML. Remember that the attributes’ properties are
optional in most cases.
1.2
Table 8.1 Metadata
attributes control how the XmlSerializer maps classes to XML documents. Each
attribute allows further customization of the XML format through its
properties.