|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
XML
DETAILS
Question: Which parts of an XML document are case-sensitive?
Answer: All of it, both markup and text. This is significantly different from HTML and most other SGML applications. It was done to allow markup in non-Latin-alphabet languages, and to obviate problems with case-folding in writing systems which are caseless. * Element type names are case-sensitive: you must follow whatever combination of upper- or lower-case you use to define them (either by first usage or in a DTD or Schema). So you can't say <BODY>…</body>: upper- and lower-case must match; thus <Img/>, <IMG/>, and <img/> are three different element types; * For well-formed XML documents with no DTD, the first occurrence of an element type name defines the casing; * Attribute names are also case-sensitive, for example the two width attributes in <PIC width="7in"/> and <PIC WIDTH="6in"/> (if they occurred in the same file) are separate attributes, because of the different case of width and WIDTH; * Attribute values are also case-sensitive. CDATA values (eg Url="MyFile.SGML") always have been, but NAME types (ID and IDREF attributes, and token list attributes) are now case-sensitive as well; * All general and parameter entity names (eg Á), and your data content (text), are case-sensitive as always.
|
|
|
Category |
XML Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7691 users |
Added on |
9/14/2014 |
Views |
67142 |
Rate it! |
|
|
Question:
Which parts of an XML document are case-sensitive?
Answer:
All of it, both markup and text. This is significantly different from HTML and most other SGML applications. It was done to allow markup in non-Latin-alphabet languages, and to obviate problems with case-folding in writing systems which are caseless. * Element type names are case-sensitive: you must follow whatever combination of upper- or lower-case you use to define them (either by first usage or in a DTD or Schema). So you can't say <BODY>…</body>: upper- and lower-case must match; thus <Img/>, <IMG/>, and <img/> are three different element types; * For well-formed XML documents with no DTD, the first occurrence of an element type name defines the casing; * Attribute names are also case-sensitive, for example the two width attributes in <PIC width="7in"/> and <PIC WIDTH="6in"/> (if they occurred in the same file) are separate attributes, because of the different case of width and WIDTH; * Attribute values are also case-sensitive. CDATA values (eg Url="MyFile.SGML") always have been, but NAME types (ID and IDREF attributes, and token list attributes) are now case-sensitive as well; * All general and parameter entity names (eg Á), and your data content (text), are case-sensitive as always. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How does XML handle white-space in my documents?
|
View Answer
|
|
How would you build a search engine for large volumes of XML data?
|
View Answer
|
|
When constructing an XML DTD, how do you create an external entity reference in an attribute value?
|
View Answer
|
|
Give some examples of XML DTDs or schemas that you have worked with.
|
View Answer
|
|
Can you walk us through the steps necessary to parse XML documents?
|
View Answer
|
|
Why not just carry on extending HTML?
|
View Answer
|
|
What is SOAP and how does it relate to XML?
|
View Answer
|
|
What is DOM and how does it relate to XML?
|
View Answer
|
|
Give a few examples of types of applications that can benefit from using XML.
|
View Answer
|
|
Who is responsible for XML?
|
View Answer
|
|
Aren't XML, SGML, and HTML all the same thing?
|
View Answer
|
|
What is SGML?
|
View Answer
|
|
Describe the role that XSL can play when dynamically generating HTML pages from a relational database.
|
View Answer
|
|
Why is XML such an important development?
|
View Answer
|
|
What is DOM?
|
View Answer
|
|
Some Limitation or Disadvantage of XML?
|
View Answer
|
|
How do I convert my existing HTML documents into XML?
|
View Answer
|
|
What are the differences between SAX and DOM parsers?
|
View Answer
|
|
How can u create an XML file?
|
View Answer
|
|
Why is XML such an important development?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All XML Interview Questions & Answers - Exam Mode /
Learning Mode
|