Well Formed XML

An XML document is called well-formed if it satisfies certain rules, specified by the W3C.

These rules are:

Example of a Valid XML document

   html xhtml css svg xml php mysql 

Example of an invalid XML

    html xhtml css svg xml php mysql 

To check whether an XML document is well-formed or not, you have to use an XML parser.

An XML parser is a Software Application, which introspects an XML document and stores the resulting output in memory. If an XML document is parsed by an XML parser and some irregularities are found, it generates some errors and it is then denoted as an XML file , which is not a well-formed XML document.

Well-formed XML is an XML document which follows some rules specified by W3C.

Follow us on Facebook and Twitter for latest update.