What is a valid XML document?
Plz share me about What is a valid XML document with suitable example?
A well-formed XML Document has to follow several generic rules. I mention some of them.
1.XML documents must have a root element or The XML Document may only have one root element (<book>...</book>).
2.XML elements must have a closing tag (<author>...</author> or <author/>).
3.Tags never overlap, so this arrangement would produce an error: <author><name>...</author></name>.
4.XML tags are case sensitive.
5.XML elements must be properly nested.
6.XML attribute values must be quoted.
<?xml version="1.0" encoding="ISO-8859-1"?>
<body>Don't forget me this weekend!</body>
If you have any problems about this i will help you.
Click Here to Expand Forum to Full Width