36. Why XML editor is needed instead of Notepad?
XML editors are required to write error free XML documents, and it is used to validate against DTD or schema. Editors are able to check:
• Open and Close Tags
• XML against DTD
• XML against Schema
• Color code on XML Syntax
37. What is XML Encoding?
XML documents may contain Non-ASCII characters like French and Norwegian characters. XML Encoding is used to avoid errors and XML files have to be saved as Unicode.
38. Which XML is set to be valid XML?
When the XML file is validated against the Document Type Definition(DTD), then it is called valid XML. DTD is nothing but it defines the structure of an XML file.
39. What is Simple Element?
A simple element contain only text and following are the kinds of Simple Element:
· No attributes
· Doesn’t contain other elements
· It cannot be empty
40. What is Complex Element?
A complex element contain other elements or attributes and following are kinds of Complex Elements:
· It has empty elements
· It contain other elements
· It contain only text
· It contain both other elements and text
41. Is there a way to describe XML data?
Yes, XML uses Document Type Definition (DTD) to describe the data.
42. What are the three parts of XSL?
XSL consists of three parts:
· XSLT – Used to transform XML documents
· XPath – Used for navigating in XML documents
· XSL-FO – Used for formatting XML documents
43. What is the correct syntax when we define XML version?
1
|
<?xml version=”1.0”/>
|
is the correct declarative syntax used to define XML version.
44. If XML attribute name itself has double quotes, then how it can be represented?
Attribute name can be represented within single quotes if double quotes are present in the attribute name.
Example –
1
|
<country city='Texas "US"'></country>
|
45. What are the types of XML Parsers?
There are two types of parsers – Non-Validating and Validating Parsers. Name itself implies Non-Validating will not validate the XML and Validating parser will validate the XML with DTD.
46. Whether root element is required for XML? If so, how many root elements are required?
Yes, root element is required, and it can have only one root element in each XML.
47. What is XML Signature?
XML Signature is recommended by W3C, and it acts as a digital signature for XML documents. If the signature is contained outside the document, it is called detached signature. If it contains inside the XML document, then it is called Enveloping signature.
48. What is Data Island?
An XML Data island is XML data embedded into a HTML page. This works only with the Internet.
49. What is DiffGram in XML?
A DiffGram is an XML format which is used to find current and original versions of XML document.
50. What is SAX?
SAX is an interface processing XML documents using events.
Previous-------------------------------Next
Previous-------------------------------Next