19.4. Mapping XML Schemas to Object-oriented Languages

Development tools are now adding support for XML and XML schemas, and code generators are becoming available to perform the translation between XML schemas and classes in programming languages. Such a tool might create an XML schema based on an existing class, or it might generate source code to match an XML schema that was already designed. In any case, tools such as code generators are not foolproof, especially when they are used for such complicated tasks as mapping between these two syntaxes. It is important for developers to understand how to map between XML schemas and objects before they begin to alter generated code. Let’s take a look at how an XML schema can be mapped to an object-oriented ...

Get XML Schema Complete Reference, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.