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.

100<br />

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

Notice the <strong>XML</strong> is properly formed; however, there’s a mistake in the customer<br />

type attribute. The DTD provides the allowable values of “retail” or “wholesale.” If<br />

the attribute isn’t present in the <strong>XML</strong>, the customer type attribute defaults to “retail,”<br />

according to the DTD. The <strong>XML</strong> has a value of “manufacturing.” This produces a<br />

warning in the <strong>XML</strong> document, but it doesn’t prevent the <strong>XML</strong> from being parsed<br />

because it’s still properly formed <strong>XML</strong>.<br />

Try changing the customer tag to:<br />

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

Saved successfully!

Ooh no, something went wrong!