|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
XML
DETAILS
Question: How can I make my existing HTML files work in XML?
Answer: Either convert them to conform to some new document type (with or without a DTD or Schema) and write a stylesheet to go with them; or edit them to conform to XHTML. It is necessary to convert existing HTML files because XML does not permit end-tag minimisation (missing , etc), unquoted attribute values, and a number of other SGML shortcuts which have been normal in most HTML DTDs. However, many HTML authoring tools already produce almost (but not quite) well-formed XML. You may be able to convert HTML to XHTML using the Dave Raggett's HTML Tidy program, which can clean up some of the formatting mess left behind by inadequate HTML editors, and even separate out some of the formatting to a stylesheet, but there is usually still some hand-editing to do.
|
|
|
Category |
XML Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9694 users |
Added on |
9/14/2014 |
Views |
66218 |
Rate it! |
|
|
Question:
How can I make my existing HTML files work in XML?
Answer:
Either convert them to conform to some new document type (with or without a DTD or Schema) and write a stylesheet to go with them; or edit them to conform to XHTML. It is necessary to convert existing HTML files because XML does not permit end-tag minimisation (missing , etc), unquoted attribute values, and a number of other SGML shortcuts which have been normal in most HTML DTDs. However, many HTML authoring tools already produce almost (but not quite) well-formed XML. You may be able to convert HTML to XHTML using the Dave Raggett's HTML Tidy program, which can clean up some of the formatting mess left behind by inadequate HTML editors, and even separate out some of the formatting to a stylesheet, but there is usually still some hand-editing to do. 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 |
|
Which parts of an XML document are case-sensitive?
|
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
|
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
|