The following topics will be discussed in this chapter:
What are XML Schemas?
Why use XML Schemas?
Different Views of XML Schema Documents in NetBeans
Maintaining XML Schema Documents within NetBeans
XML Components
XML Schema Components
XML Schema Design Patterns
By the end of this chapter, you should have a solid understanding of XML Schema
and the support provided by the NetBeans Enterprise Pack for developers using
XML Schema Language.
??? ??? ??? ??? ??? ??? ???
XML Schema Designer
[ 142 ]
What are XML Schemas?
Over recent years, XML has become a dominant technology for data interchange
between different systems. The advantages of XML over, say, flat files, is that the
data is extensible (additional attributes or elements can be added to data structures)
and self describing. Using this knowledge, we could describe an airport, for
example, in a simple piece of XML as:
London Heathrow
From this XML, we can easily see that we are describing a single airport called
London Heathrow. In the future, we may want to expand our simple description
of Heathrow Airport by adding the Airport's IATA code and the number of major
runways the airport has. In the previous paragraph we stated how XML is self
describing and extensible??”the key features that allow us to easily describe these
new attributes in our XML sample.
Pages:
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135