XML
  Home arrow XML arrow Page 3 - An Introduction to XML
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

An Introduction to XML
By: Suresh Kumar
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 2 stars2 stars2 stars2 stars2 stars / 5
    1999-10-21

    Table of Contents:
  • An Introduction to XML
  • SGML, HTML and XML
  • Valid and Well-formed XML
  • Example XML Documents and analysis
  • Software for XML
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    An Introduction to XML - Valid and Well-formed XML
    (Page 3 of 6 )

    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


     

       

    XML ARTICLES

    - 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...
    - Practical XML Data Design and Manipulation f...
    - SimpleXML
    - XForms Basics, Part 3
    - XForms Basics, Part 2
    - XForms Basics

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway