List the rules to be followed by an XML document.
Answer
Following rules need to be followed by an XML document:
They must have a root tag, the document should be well formed : the tags should
be properly closed, since XML is case sensitive, one should take care that the
documents are written with proper care and the attribute values should be
inside “”
Explain about XML Canonicalization.
Answer
Canonicalization refers to finding the simplified form of an XML
document.
XML files may not contain the same sequence of characters (bytes or octets) even
if they are logically equivalent. This is where we need to canonicalize them
and check their canonical forms.
Steps to canonicalize an XML document
-
Encoding schemes should represent characters by octets.XML documents should be
encoded in UTF-8 encoding.
-
The canonical form needs all line breaks to be #xA.
-
All attributes need to be normalized in canonical form.
|
More XML Links
Answer - XML DTD is a rule book that an XML document follows.
Once DTD is ready, you can create number of XML documents following the same
rules..............
Answer - The term CDATA is used when you dont want some text
data to be parsed by the XML parser. ..............
Answer - XSL is a language for expressing style sheets. An XSL
style sheet is a file that describes the way to display an XML
document...............
|
|