SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 125 | Next

Frank Jennings, David Salter

"Building SOA-Based Composite Applications Using NetBeans IDE 6"


XML Schema allows us to define the elements and attributes that are present within
an XML file and allows the XML file to be machine validated for correctness. This
second part is important, because XML schema allows us to machine validate XML
files. This means that applications can check that data is valid before they attempt to
process the data.
XML Schema is a W3C Recommendation which was first recommended in May 2001
(http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/). The W3C describes
XML Schema (http://www.w3.org/TR/NOTE-xml-schema-req) as follows:
The XML schema language can be used to define, describe, and catalogue
XML vocabularies for classes of XML documents. Any application of XML
can use the Schema formalism to express syntactic, structural, and value
constraints applicable to its document instances.
Given this knowledge of XML schema, we could define a simple XML schema
(airport.xsd) and XML file (airport.xml) for our airport data structure as follows:
//airport.xsd

targetNamespace="http://xml.netbeans.org/schema/airport"
xmlns:tns="http://xml.netbeans.org/schema/airport"
elementFormDefault="qualified">










??? ??? ??? ???
XML Schema Designer
[ 144 ]
//airport.


Pages:
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137