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

Can we convert csv to json?

0 Answers  


Why XML editor is needed instead of Notepad?

0 Answers  


What is xml and css?

0 Answers  


Can I still use server-side inclusions?

0 Answers  


How often do rss feeds update?

0 Answers  






How many types of xpath are there?

0 Answers  


If I replace my Sqlserver with XML files and how about handling the same ?

0 Answers   HCL,


What are the advantages of xml over html?

0 Answers  


Can you use the xslt to convert html into vxml? : xslt

0 Answers  


Can we do sorting in XSL ? how do you deal sorting columns dynamically in XML.

0 Answers   ABC,


Why is xml extensible?

0 Answers  


When constructing an XML DTD, how do you create an external entity reference in an attribute value?

1 Answers  


Categories