Parts of an XML Document

An XML document is a relatively simple item that is made up of few building blocks. This format has been recommended as a web standard in order for an XML document to be Valid.  Below are the components of an XML document.

•   Prolog (optional)

XML Declaration

Document Type Declarations (DTD)

•   Root Element

Nested Elements

Attributes and Values

Data

 

Prolog – The prolog is optional and contains the XML declaration and the DTD.

XML Declaration – states the version of XML that is being used.

DTD – Determines the rules that the XML document must follow. A more detailed lesson on DTDs will be visited later in this tutorial.

Root Element – Is the first element in the XML document and states the kind of XML document that it is. There can only be one root element.

Elements and – These represent the different types of data being stored in the XML document.

Attributes – Like HTML attributes, XML attributes have a name-value relationship.

Data – This is the content of the XML file and it appears between the open and closing tags of the elements.

This entry was posted in XML Tutorial. Bookmark the permalink.

6 Responses to Parts of an XML Document

  1. bmmzyfixtirh cheapest phentermine zero health professional prescribed qrdzoumve buy phentermine diet pill iixqnjouukkebr

  2. You completed various nice points there. I did a search on the subject matter and found mainly folks will agree with your blog.

  3. Great – I should certainly pronounce, impressed with your website. I had no trouble navigating through all the tabs as well as related info ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your customer to communicate. Excellent task.

  4. Wow, suprisingly I never knew this. Keep up with good posts.

  5. This blog post is way better than the MSM. Thank you for telling the truth. My friends shared it on Facebook.

  6. Hi, thanks for writing this post. I really found the 2nd paragraph interesting. Anyways, I’m gonna post this to my Facebook page later tonight because I think others will enjoy it.

Leave a Reply

Your email address will not be published.