What is ?Well Formed XML? and ?Valid XML?



What is ?Well Formed XML? and ?Valid XML?..

Answer / manoj joshi

W3C, in the XML specification, has defined certain rules
that need to be followed while creating XML documents. The
examples of such rules include: having exactly one root
element, having end-tag for each start- tag, using
single/double quotes for attribute values, and so on. If an
XML document follows all these rules, it is said to be well-
formed document and XML parsers can be used to parse and
process such documents.
Document Type Definitions (DTDs) or XML Schemas can be used
to define the structure and content of a specific class of
XML documents. This includes the parent-child relationship
details, attribute lists, data type information, value
restrictions, etc. In addition to the well-formedness
rules, if an XML document also follows the rules specified
in the associated DTD/Schema, it is said to be a valid XML
document. All valid XML documents are well-formed; but the
reverse is not always true, that is, well-formed XML
documents do not necessarily have to be valid.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

When should I use a cdata marked section?

0 Answers  


Explain about the techniques for processing xml files?

0 Answers  


How can I make my existing html files work in xml?

0 Answers  


How do I change a text file to xml?

0 Answers  


How do I import an xml file into excel?

0 Answers  






Where should I use xml?

0 Answers  


What is DOM and how does it related to XML?

2 Answers   IBM,


How do I identify the document type of an xml document?

0 Answers  


Can excel open xml files?

0 Answers  


Is pdf an xml format?

0 Answers  


How do I use the default xml namespace to refer to attribute names in an xml namespace?

0 Answers  


How do you create a docx file?

0 Answers  


Categories