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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / sarankumarreddy.c

If XML is confirming to DTD rules then it's a valid XML.
If a XML document is conforming to XML rules (all tags
started are closed,there is a root element etc)then it's a
well formed XML.

Is This Answer Correct ?    12 Yes 4 No

Post New Answer

More XML XSLT RSS Interview Questions

Whether root element is required for XML? If so, how many root elements are required?

0 Answers  


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

0 Answers  


Is pdf an xml format?

0 Answers  


How to use filtering in XSLT?

0 Answers  


Does mixcloud have an rss feed?

0 Answers  


Write a code for xml news?

0 Answers  


What program opens xsd files?

0 Answers  


What is a smart document?

0 Answers  


How can I use xml?

0 Answers  


How do you load XML document and perform validation of the document?

2 Answers   IBM, Microsoft,


Is xml a programming language?

0 Answers  


Can we generate xsd from xml?

0 Answers  


Categories