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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is xml format in excel?

432


Is there a way to describe XML data?

546


What xpointer schemes are supported in this release?

464


What are the different XML API's?

574


Where can I upload podcasts?

472






What is parsing and how do I do it in xml?

453


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

479


What is the use of xslt element?

501


Types of applications that can benefit from using XML?

2805


How is xml structured?

452


Why do we use dtd?

459


Explain about the role of xml in soap?

477


What is xml used for?

491


what is XLink and XPointer ?

2050


What is the difference between dtd and xsd?

472