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

What is the difference between wsdl and xsd?

0 Answers  


If XML attribute name itself has double quotes, then how it can be represented?

0 Answers  


What are the hooks provided by xslt?

0 Answers  


Explain the classes in System.XML Namespace?

0 Answers  


Is there a way to describe XML data?

0 Answers  






What compiler switch creates an xml file from the xml comments in the files in an assembly?

1 Answers   Siebel Systems,


How does xslt transform xml?

0 Answers  


Why do people use xml?

0 Answers  


What is the difference between xsl and dsssl?

0 Answers  


What is difference between xml xsd and xslt?

0 Answers  


What are the different types of parser available to parse the XML document?

0 Answers   Sans Pareil IT Services,


What is the difference between versions 1.0 and 1.1 of the xml namspaces recommendation?

0 Answers  






Categories