18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Extensible Markup Language (XML) 167<br />

definitions of tags. XML document by itself does not provide much<br />

information about how <strong>to</strong> interpret it.<br />

Does not facilitate data transformation<br />

The core problem in either EAI or <strong>B2B</strong>i for all corporations is the<br />

ability <strong>to</strong> transform and integrate data from one application <strong>to</strong> another.<br />

However, XML is just another data format in the plethora of formats<br />

used by a company.<br />

6.4.7. XML namespaces<br />

According <strong>to</strong> the W3C, an XML namespace is a collection of names,<br />

identified by a Uniform Resource Identifier (URI) reference, which are<br />

used in XML documents as element types and attribute names. XML<br />

namespaces qualify element names in a recognizable manner <strong>to</strong> avoid<br />

conflicts between elements with the same name. The elements contained<br />

within an XML document can be defined in different schemas on the<br />

Internet.<br />

Since XML documents can contain data from multiple sources across<br />

the Web, there is a great likelihood of element name overlapping. With<br />

the use of namespaces, same element names will not conflict and<br />

clarify their respective origins within an XML document. In other<br />

words, these similar elements could refer back <strong>to</strong> different schemas<br />

which uniquely qualify their semantics. A very simple example of<br />

element repetition within an XML document is the use of in a<br />

book purchase order. This element can be used for the book title,<br />

author's title, publishing company's contact person title etc. It is worth<br />

mentioning that namespaces do not give processing instructions for<br />

elements. Users (application developers, etc.) have <strong>to</strong> know what the<br />

elements mean and decide how <strong>to</strong> process them.<br />

The W3C has released XML namespaces as a recommendation,<br />

allowing elements <strong>to</strong> be subordinate <strong>to</strong> a URI. This enables users <strong>to</strong><br />

define private dictionaries of terms, or use a public namespace of<br />

common terms.<br />

Let's see the use of namespaces through an example.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!