Improve Your XML Ability : PART-2

12. What is an XML Schema?
An XML schema gives the definition of an XML document, and it has following:
• Elements and attributes
• Elements that are child elements
• Order of child elements
• Data types of elements and attributes
DOM Document?

13. Who is responsible for XML?
XML is a recommendation of the W3C – World Wide Web Consortium and the development are supervised by XML working group
14. What is XSL?
XSL is a language used with XML for expressing style sheets as like CSS. It describes how to display an XML document for a given type.


15. What is XML Parser?

XML Parser is used to convert from XML document into an XML DOM object which can be written in Javascript.


16. What are XML Namespaces?

XML namespaces are used to avoid element name conflicts, and it can be avoided by using prefix before the name.


17. How comment can be represented in XML?

Comment can be represented as <!- – comments – -> as like HTML. This comment symbol is applicable for single or multiple lines.


18. What is CDATA?


CDATA is unparsed character data that cannot be parsed by the XML parser. Character < and > are illegal in XML elements. CDATA section starts with <![CDATA[“ and end with “]]>”.
19. What is XML Element?
An XML document contains XML Elements, and it starts from an element’s start tag to end tag. It can contain:
• Other elements within main element
• An Attribute

• text
20. What are the basic rules while writing XML?
These are the basic rules while writing XML:
• All XML should have a root element
• All tags should be closed
• XML tags are case sensitive
• All tags should be nested properly
• Tag names cannot contain spaces
• Attribute value should appear within quotes
• White space is preserved
Previous------------------------------------Next