This text file contains sample code fragments from: Section 6.4 - Namespaces Chapter 6 - Fundamental XML Schema: Types and Message Structure Basics Book - Web Service Contract Design & Versioning for SOA Series - Prentice Hall Service-Oriented Computing Series from Thomas Erl Site - www.soabooks.com Example 6.16 - An xsd:schema element with a targetNamespace attribute. 1234567890123 Service Blaster 2000 Example 6.17 - An XML document instance based on the previous XML schema. Note the use of the games: prefix to represent the target namespace. Example 6.18 - A different version of the schema in which three global elements are declared. 1234567890123 Service Blaster 2000 Example 6.19 - An XML document instance based on the previous schema. Because all three elements are global, they fall within the target namespace and must be prefixed accordingly. Example 6.20 - In this case, the target namespace is assigned to a prefix rather than being the default. As a result, the values of the ref and type attributes must use prefixes to refer to elements and types by their qualified names. Example 6.21 - Because the elementFormDefault attribute is set to “qualified,” all four elements are associated with the target namespace. 1234567890123 Service Blaster 2000 Example 6.22 - An XML document where all elements belong to the same namespace. (Note how this example looks exactly like an earlier example, where the gtin and title elements were declared globally.) Example 6.23 - The form attribute is used with the gtin element declaration. 1234567890123 Service Blaster 2000 Example 6.24 - In this XML document instance, the title element is not prefixed because the corresponding schema did not bind it to the target namespace.lement ... Example 6.25 - The form attribute is used to associate the local productID attribute with the target namespace. ... Example 6.26 - The productID attribute is prefixed with games: because of the use of the form attribute in the corresponding schema. AY234 123456789012 Service Blaster 2000 This is a great game. M 29.99 1 Example 6.27 - The contents of the response message to be used by the Game service. Example 6.28 -The complete XML schema for the response message.