Home arrow XML arrow Page 3 - An Introduction to XML

Valid and Well-formed XML - XML

XML is an acronym for "Extensible Markup Language". XML is the latest, powerful , platform-independent and content-dependent technology in the internet development. Learn all about it here.

TABLE OF CONTENTS:
  1. An Introduction to XML
  2. SGML, HTML and XML
  3. Valid and Well-formed XML
  4. Example XML Documents and analysis
  5. Software for XML
  6. Conclusion
By: Suresh Kumar
Rating: starstarstarstarstar / 6
October 21, 1999

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Two levels of conformance are there in the XML recommendation: valid and well-formed.

A well-formed XML file must follow a few key rules:

  • It should have at least one element.
  • The document should conform to the XML specification
  • The root element (<Mail>) should not be contained by any other element.
  • Proper nesting of elements is a must.
  • Attribute values should be within quotation marks.
  • All the entities other than reserved entities should be declared.
The reader should take a look at the XML recommendation itself before attempting to create an XML document..

Refer http://www.w3c.org/xml

Even without a DTD, an XML parser should parse a well-formed XML document. If it is not well-formed it can't be called an XML document. This aspect is good for web applications because the applications need not know the DTD structure used to create the XML document.

Valid XML

Valid XML files are those which have a DTD reference and conforms to the DTD. A valid XML file must also be well-formed. The availability of DTD along with the document facilitates the XML processing programs and rendering of the document by XML-enabled browsers.

 
 
>>> More XML Articles          >>> More By Suresh Kumar
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

XML ARTICLES

- Google Docs and Xpath Data Functions
- Flex Array Collection Sort and Filtering
- The Flex Tree Control
- Flex List Controls
- Working with Flex and Datagrids
- How to Set Up Podcasting and Vodcasting
- Creating an RSS Reader Application
- Building an RSS File
- An Introduction to XUL Part 6
- An Introduction to XUL Part 5
- An Introduction to XUL Part 4
- An Introduction to XUL Part 3
- An Introduction to XUL Part 2
- An Introduction to XUL Part 1
- XML Matters: Practical XML Data Design and M...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: