2.4. Authoring XSD Schemas

When building and using Web services, you will need to create new XSD schemas and/or read and understand existing ones. Occasionally, you might need to tweak an XSD schema that was auto-generated by your development tool. This section builds on the concepts of the XSD type system to show you how to create XSD schemas.

Typically, there are two steps to create XSD schemas: define new data types and declare elements and attributes using your defined types and the built-in ones. The order of these steps doesn't matter—you can declare elements first or define types first or mix the two.

2.4.1. Declaring Elements

When you declare an element you specify the element's name and its type. For example, if your XML document contains ...

Get Real World XML Web Services: For VB and VB .NET Developers 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.