Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

XML Interview Questions and Answers for Freshers and Experience Part-5

Be First!

xml25. Describe the rules and regulations that must be followed while creating a well-formed XML document.
The following are the rules and regulations that are necessary to follow while creating a well-formed XML document:
Every start tag must end with an end tag.
A root element should be included for enclosing other child elements.
XML tags are case-sensitive; therefore, start and end tags must be of same spelling and the casing should also be the same.
XML’s empty tags are necessary to close with a forward slash (/).
XML’s attributes values are necessary to enclose within double quotation marks.
XML tags must be properly nested. It means starting tags should be closed in the reverse order in which they present.

26. What are the naming conventions required for XML elements tags?

The following are the naming conventions that need to be followed for XML elements tags:
Element names should contain only characters, numbers, hyphens, and periods.
Element names cannot not begin with a number or punctuation character.
Element names must not start with the word xml (or XML, or Xml).
Element names cannot consist spaces.
Element names can be used any words except xml, XML, or Xml because no words are reserved in XML.

27. The XML preserves white spaces. Is it true?
Yes, it is true.

28. Explain the XML elements.
The elements are the central units of an XML document that explain and identify data. The elements are represented by the tags. You can also make your own tags, which make XML a user-friendly language. By creating custom meaningful elements, you can improve readability of the document. XML elements can be nested and the nested elements are known as child elements

(60)

Previous
Next

Leave a Reply