|
INTERVIEW QUESTIONS
XML
XML PARSER
DETAILS
Question: What's the difference between Text Content and CDATA sections?
Answer: You as an application programmer who reads XML can treat them the same.
CDATA sections are there to help with text content that has a lot of characters which would have to be escaped otherwise. However, as there is the character sequence ]]> which is not allowed in CDATA sections (because it terminates them), you'll have to be careful, too. So, for me, there's no use for CDATA sections when you write XML.
|
|
|
Category |
XML Parser Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9505 users |
Added on |
8/31/2014 |
Views |
67124 |
Rate it! |
|
|
Question:
What's the difference between Text Content and CDATA sections?
Answer:
You as an application programmer who reads XML can treat them the same.
CDATA sections are there to help with text content that has a lot of characters which would have to be escaped otherwise. However, as there is the character sequence ]]> which is not allowed in CDATA sections (because it terminates them), you'll have to be careful, too. So, for me, there's no use for CDATA sections when you write XML. 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 can I find out the depth of a node in the XML structure?
|
View Answer
|
|
How can I find out the line number of the current line?
|
View Answer
|
|
Does the parser work with C++Builder, Kylix, C#, Delphi for .NET ?
|
View Answer
|
|
What is the difference between TXmlParser and TXmlScanner?
|
View Answer
|
|
Why are the attribute functions case sensitive?
|
View Answer
|
|
How can I retrieve the attribute values from my start tags/empty-element tags?
|
View Answer
|
|
I have Empty-Elements in my XML (like <br/>) -- how can I parse them?
|
View Answer
|
|
How can I write XML with the parser?
|
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 Parser Interview Questions & Answers - Exam Mode /
Learning Mode
|