1.

Which of the following encoding an XML parser assumes?(a) UTF-8(b) UTF-16(c) UTF-32(d) Both UTF-8 and UTF-32This question was addressed to me in final exam.This interesting question is from Major Themes of (X)HTML topic in portion HTML Fundamentals of HTML

Answer»

Right option is (d) Both UTF-8 and UTF-32

Best explanation: Basically PARSERS are used in softwares and they CONVERT user data into machine data in short in memory FORM to use. In XML, parser is used to read XML. If an XML DOCUMENT lacks encoding specification, an XML parser assumes that the encoding is UTF-8 or UTF-16.



Discussion

No Comment Found

Related InterviewSolutions