Learnthat.com Free Certification and Computer Online Courses
ThatNetwork.com Internet Media Network Exampractice.com free certification practice exams, mcse, comptia Definethat.com - Free technical definitions, define Free Romance Tips, Romantic Tips, Date Ideas Free POD publisher comparison print on demand
Learnthat.com Free A+ Certification, Computer Classes, Certification Courses, Business, Lifestyle, ApplicationsFree business tutorials and definitionsFree certification tutorials and definitionsFree computer and technical tutorials and technical definitionsFree Finance Tutorials and DefinitionsFree House Repair TutorialsFree Lifestyle and Fun Tutorials
  All Online CoursesNew Courses QuickTipsWord DefinitionsSubmit a TutorialLinks
÷ Resources
Home
free tech tutorials
Free Tutorials
free tech tutorials
Certifications
free tech tutorials
Definitions
free tech tutorials
Resources/Links
free tech tutorials
Forums
free tech tutorials
Distance Education
free tech tutorials
Highest Rated Tutorials
÷ Popular Tutorials
÷ New Tutorials

Learn XML programming in this free XML training course

 

Section 6:  XML Best Practice

What are valid XML documents?

There are several places in an XML document where it can run into problems.  A valid document is one that has no runtime problems, all of the code is properly formatted, and all of the referenced materials are properly defined.

To create a valid XML document, you need to create a DTD… for those who might dislike DTD’s this can be a bit of a hassle, but it’s necessary if the program reading the XML document is going to know what all of the definitions for the elements are and how best to use them.

A valid XML document must also be accompanied by a stylesheet, whether it’s CSS or XSL.  This is so that the document can be formatted for the screen or program properly, and so that all of the elements defined by the DTD are used properly.

Open up your preferred text editor or XML editor, and begin a new document.  Make your XML declaration, reference a stylesheet (it can be a made-up stylesheet name for this exercise), and then create a short inline DTD (defining at least 3 elements.)

Once you’ve finished this, go ahead and create a brief XML document, choosing one of your elements as a root element and placing some brief content within the other two.

Your finished document should look a little something like this:

           

           

           

                       

                       

           

                        Tooter

                        Black

           

If you wish, you could then go in and create your stylesheet file so that the document will run as a valid document.

 

by John Casteele

Find more free Internet tutorials from Learnthat.com.

More Information:

Help us by rating this tutorial: [---] [--] [+] [++] [+++]
[---] lowest; [+++] highest

 

 

 


Learn: Free Tutorials - Links to Free Tutorials
Understand: Free Technical Definitions - ExplainThat Whitepapers
Use: Certification Section - Discussion Forum

Visit Our Network Sites:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2004 Learnthat.com