Selfreview Exercises Lle
State whether the following are true or false. If false, explain why.
a) XML is a technology for creating markup languages.
b) XML markup text is delimited by forward and backward slashes (/ and \).
c) Arabic characters can only be placed in to an XML document using an Arabic language keyboard.
d) Unlike HTML, all XML start tags must have corresponding end tags.
e) Parsers check an XML document's syntax and may support the Document Object Model and/or the Simple API for XML.
f) An XML document is considered well formed if the XML document contains whitespace characters.
g) URIs are strings that identify resources such as files, images, services, electronic mailboxes and more.
h) When creating new XML tags, document authors must use the set of XML tags provided by the W3C.
i) The pound character (#), the dollar sign ($), ampersand (&), greater-than (>) and less-than (< ) are examples of XML reserved characters.
j) Any text file is automatically considered to be an XML document by a parser.
Fill in the blanks in each of the following statements.
a) A/An_processes an XML document.
Valid characters that can be used in an XML document are the carriage return, the line feed and_characters.
An entity reference must be proceeded by a/an_character.
Text in a/an_section is not parsed.
An XML document is considered
. if it is syntactically correct.
. help document authors prevent element naming collisions.
Lines proceeding the root element in an XML document are collectively called the i) A/An
. tag does not contain character data.
j) XML documents commonly have the file extension_.
Identify and correct the error(s) in each of the following:
a) <my Tag>This is my custom markup<my Tag>
b) <!PI value!> <!-- a sample processing instruction -->
d) <CDATA>This is a CDATA section.</CDATA>
e) <xml>x < 5 && x > y</xml> <!-- mark up a Java condition **>
Post a comment