Information Technology Reference
In-Depth Information
Figure 1.4
(a) XML and (b) JSON presentations of a person.
XML is a text format designed to carry and store data. It uses
tags to organize elements, associated contents and attributes. Figure
1.4a shows the XML representation of a piece of information that
describes a person, regarding its name, age, and phone number.
Element < person > contains nested elements such as < firstName > ,
< lastName > , < age > ,and < phoneNumber > ; < firstName > contains
content Wei; < phoneNumber > also contains attribute “type” that
specifies the type of the phone number is office.
Compared to XML, JSON, which is based on a subset of the Java-
Script programming language, is a lightweight data-interchange format.
JSON is built on two structures, that is, a collection of name/value pairs
and an ordered list of values. Figure 1.4b shows the JSON representation
of the same person we have just illustrated with XML in Figure 1.4a. The
object has two string fields for first name and last name, respectively, a
number field for age, and a nested object storing the phone number.
Discovery
UDDI (Universal Description, Discovery, and Integration) [27], as a
specification language, defines a universal method for enterprises to
Search WWH ::




Custom Search