Designing XML Schemas

Visual Studio has made huge strides over the years in its support for XML schema design. This is evident right off the bat when you open an XML schema file (.xsd). A visual design window and an XML Schema Explorer window, working in tandem, quickly allow you to inspect, edit, and build out your schema. Figure 6.31 shows the same schema we just inferred from our simple “product catalog” XML file opened in the Visual Studio IDE. Note the schema explorer to the right and the schema designer to the left. Let’s examine the various views in detail.

Image

FIGURE 6.31 Editing a simple XML schema.

Schema Views

Visual Studio provides ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.