Complex types are
created within elements and are
not reused elsewhere within the
XSD file.
Multiple No
Venetian Blind The Venetian Blind pattern
ensures that there is only one
global element within the XSD file
and all other elements are local
to this global element. Complex
types are created outside of
elements and can be reused
between elements.
Single Yes
Garden of Eden In the Garden of Eden pattern,
all elements and complex types
are created within the global
namespace and and can be
reused by any elements within
the XSD file.
Multiple Yes
XML Schema Designer
[ 156 ]
To apply a Design pattern to a selected XSD file, right-click on the XSD file in the
project explorer and select the Apply Design Pattern... menu option. Selecting this
option causes the Apply Design Pattern dialog shown as follows:
Within this dialog, you can select whether you wish to use a Single Global Element
or Multiple Global Elements within your XSD file. You can also choose whether
to create complex types and reuse them within the XSD file or to use local complex
types for each element. For each of these options, NetBeans displays a fragment of
XML code providing a preview of what the resulting XSD file will look like.
Chapter 7
[ 157 ]
Summary
In this chapter we have reviewed the basics of XML Schema Language??”a powerful
way to describe XML files thus allowing machine-based validation, and therefore
allowing software to validate .
Pages:
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147