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

How dtd is different from xml?

554


Why xml was created?

569


What is xslt explain with example?

637


Can the content model in an element type declaration contain element types whose names come from other xml namespaces?

563


What is the difference between xml and http?

510






How do I create an xml file format?

556


What is xml feed url?

505


Define structure of xml?

564


Does chrome have an rss reader?

539


Define xpath? And what is xslt?

532


Which XML is set to be valid XML?

561


How do I convert a pdf to xml?

549


How are web feeds read?

538


Does xml replace html?

584


How many document types are defined for atom feed files?

504