You are asked to create an XML schema for an Address Formatting service that needs to be able to accept a mailing address and then return the same address rearranged in a different format defined by the postal service. You are given the following specific instructions as to how the XML schema should be designed:
* The XML schema requires two elements named "AddressLookup" and "AddressResponse".
* The "AddressLookup" element must contain child elements named "address1", "address21" "city". "stateOrRegion", "postalCode" "country", in that order. Each of these elements must have the type string.
* The "AddressResponse" has the same children as the "AddressLookup" message, plus it contains an "addressValid" element as its last child. This element is added to indicate whether a valid address was found, and therefore this element must be of type Boolean.
Which of the following XML schemas fulfills the requirements while also following the instructions?
Currently there are no comments in this discussion, be the first to comment!