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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Extensible Markup Language (XML) 169<br />

XML documents. An element is essentially a logical unit of information,<br />

while an attribute is a characteristic of that information. Attributes help<br />

in describing the element in more detail. XML attribute types are of<br />

three kinds: a string type, a set of <strong>to</strong>kenized types and enumerated<br />

types.<br />

An element declaration has the following syntax:<br />

Syntax:<br />

<br />

Elements with data are declared with the data type inside parentheses:<br />

Syntax:<br />

<br />

#CDATA implies that the element contains character data (markup<br />

characters like <br />

The keyword ANY declares an element with any content.<br />

Example:<br />

<br />

Elements can also be empty:<br />

<br />

Empty elements are declared with the keyword EMPTY inside the<br />

parentheses.<br />

Example:<br />

<br />

XML element attributes are declared with an ATTLIST declaration.<br />

An attribute declaration has the following syntax:

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

Saved successfully!

Ooh no, something went wrong!