XML Declaration is Optional

Album Cover: Life After Death

"While your gun's raisin', mine is blazin'."
The Notorious B.I.G. / I Love the Dough

Posted on June 25, 2007 10:11 AM in XML
Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

I didn't realize this before, but I just read over at Introduction to XML that the XML declaration, or the part that looks something like this:

<?xml version="1.0" encoding="UTF-8" ?>

...is actually optional. That means that the following:

<Post>
 <Title>XML Declaration is Optional</Title>
</Post>

...is valid XML.

Comments

No one has added any comments.

Post Comments

If you feel like commenting on the above item, use the form below. Your email address will be used for personal contact reasons only, and will not be shown on this website.

Name:

Email Address:

Website:

Comments:

Check this box if you hate spam.