02.06.2013 Views

XML Demystified

XML Demystified

XML Demystified

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

54<br />

<strong>XML</strong> Demystifi ed<br />

Next you must reference the DTD file in the <strong>XML</strong> document. You do this with<br />

the tag, as you’ll recall from Chapter 3. We illustrate this in the<br />

update of the <strong>XML</strong> document that follows. The parser reads the customers.dtd file<br />

when it encounters the tag in the <strong>XML</strong> document to learn about the<br />

tags before processing the <strong>XML</strong> document.<br />

<br />

<br />

<br />

<br />

Mary<br />

Smith<br />

<br />

<br />

Now let’s take a look at how you use the <strong>XML</strong> schema in place of the DTD. You<br />

use the <strong>XML</strong> schema language to create the <strong>XML</strong> schema. Each statement of an<br />

XLM schema begins with

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

Saved successfully!

Ooh no, something went wrong!