29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

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.

10.1 XML overview<br />

10.1.1 XML markup<br />

XML is derived from the Standard Generalized Markup Language (SGML),<br />

whose predecessor GML was invented by <strong>IBM</strong> in the 1960s for describing<br />

documents in a device-independent fashion. XML is a subset of SGML and<br />

compatible with it. Initial focus is on serving structured documents over the Web.<br />

XML documents are text-based and composed of markup and content:<br />

► Markup instructs XML processors about how to treat the content, and how it is<br />

organized.<br />

► Content is the character data you would see on a printed or displayed page.<br />

There are six kinds of markups that can occur in an XML document:<br />

Elements Elements are the most common form of<br />

markup. Elements identify the content they<br />

surround: 17.07.2002.<br />

Elements begin with a start tag and<br />

end with an end tag .<br />

Non-empty elements contain child elements or<br />

character data. Empty elements have no<br />

content and can be written in one of two<br />

forms: or<br />

.<br />

Attributes Attributes are name-value pairs that occur<br />

inside element tags after the element name,<br />

such as the Price element has a currency<br />

attribute:<br />

1000.<br />

All attribute values must be enclosed in single<br />

or double quotation marks. These specify the<br />

characteristics of an element.<br />

Entity references Entity references insert reserved characters or<br />

arbitrary unicode, refer to repeated or varying<br />

text, or include the content of external files:<br />

310 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook<br />

&apos; <br />

&#x211E; <br />

Entity references begin with the ampersand<br />

and end with a semicolon.

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

Saved successfully!

Ooh no, something went wrong!