Tech@nuva

A blog dedicated to technology, real world life and moral values.

XML: Well-formedness and error-handling

Posted August 23rd, 2010 at 10:08 pm by Techanuva
Filed under: Uncategorized
The XML specification defines an XML document as a text which is wellFormed, i.e. it satisfies a list of syntax rules provided in the specification. ...
readmore

Take charge of shaping your own destiny …

Posted August 23rd, 2010 at 10:08 pm by Techanuva
Filed under: @Motivation, Future India
[caption id="attachment_257" align="aligncenter" width="865" caption="Take Charge..."][/caption] ...
readmore
Uncategorized's Articles

XML: Well-formedness and error-handling

The XML specification defines an XML document as a text which is wellFormed, i.e. it satisfies a list of syntax rules provided in the specification. The list is fairly lengthy; some key points are:

  • It contains only properly encoded legal Unicode characters.
  • None of the special syntax characters such as “<” and “&” appear except when performing their markup-delineation roles.
  • The begin, end, and empty-element tags which delimit the elements are correctly nested, with none missing and none overlapping.
  • The element tags are case-sensitive; the beginning and end tags must match exactly.
  • There is a singleroot” element which contains all the other elements.

The definition of an XML document excludes texts which contain violations of well-formedness rules; they are simply not XML.

An XML processor which encounters such a violation is required to report such errors and to cease normal processing.

Know what to remember enjoy and plan…

“Happy is the person who knows what to remember of the past, what to enjoy in the present, and what to plan for in the future.”

~Arnold H. Glasgow


Patience has its limits…

“Patience has its limits – take it too far and its cowardice.”

~George Jackson


Share your inspiration…

“Keep your fears to yourself, but share your inspiration with others.”

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

  
  
Home |  About |  Hobbies |  SEO |  Technology