What is valid xml document? What a well formed xml document?

Answer Posted / ashwini

A valid XML document is the one which conforms to all the
rules stated in its associated DTD or a schema as well as
it is well formed.

A well formed XML document fullfills the following
conditions:
1. All opened tags are closed.
2. Tags are properly nested
3. Attribute values are enclosed in double quotes.
4. Tags follow proper casing. Opening tag & its
corresponding closing tag must be written in the same way.
e.g. <NAME>ABC</NAME> is well formed. Whereas
<NAME>ABC</Name> is not well-formed.

Is This Answer Correct ?    31 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are special attributes used to declare xml namespaces?

633


How do you make an rss feed?

618


What I XMLA?

702


How do I convert a pdf to xml?

680


What is the full form of xsl?

657


What is the function of smon?

699


How do I edit an xsl file?

628


What is the icon for atom syndication?

664


Explain about dom interface?

646


What is difference between xml and xsd?

620


How do I open an xml file in excel?

642


What are the parsers are supported in xml?

618


What are the elements of xml?

654


Explain about xml data binding?

611


How to perform XML transformation in Java?

689