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.

Document type definitions (DTD)<br />

Extensible Markup Language (XML) 171<br />

An XML document is essentially a structured medium for s<strong>to</strong>ring<br />

information. But how does an application identify which XML document<br />

is valid or not? In order <strong>to</strong> assess the validity of an XML document,<br />

the application needs <strong>to</strong> establish exactly <strong>to</strong> which structure the<br />

information within the document must adhere. This is accomplished<br />

with a schema, which is a model used <strong>to</strong> describe the structure of<br />

information within an XML document. Schemas are used in XML <strong>to</strong><br />

model a class of data.<br />

One of the principal uses of structured information is <strong>to</strong> enable data<br />

interchange. Different industries create consortia <strong>to</strong> specify the content<br />

model on which they all agree and which they use <strong>to</strong> mark up their<br />

information so that they can share it with each other easily and efficiently.<br />

In the context of structured information, that content model is defined<br />

as a DTD or a schema.<br />

DTDs are a means of establishing a schema for XML documents.<br />

The purpose of a DTD is <strong>to</strong> define the legal building blocks of an<br />

XML docment. It defines the document structure with a list of legal<br />

elements. A DTD can be declared inline in an XML document, or as an<br />

external reference.<br />

Example of a DTD:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Continue on page 172

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

Saved successfully!

Ooh no, something went wrong!