XML document - List the rules to be followed by an XML document.

List the rules to be followed by an XML document.

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.

- 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

1. Encoding schemes should represent characters by octets.XML documents should be encoded in UTF-8 encoding.
2. The canonical form needs all line breaks to be #xA.
3. All attributes need to be normalized in canonical form.
XML DTD - Define DTD (Document Type definition).
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......
XML CDATA section - What is a CDATA section in XML?
XML CDATA section - The term CDATA is used when you dont want some text data to be parsed by the XML parser....
XSL - What is XSL?
XSL - XSL is a language for expressing style sheets. An XSL style sheet is a file that describes the way to display an XML document....
Post your comment