XML HTML namespace and DOCTYPE (Zend Cert)
Can anyone assist with this Zend Certification mock question? Any help appreciated.
Consider the following example XML document:
What is wrong with this document, and how can it be corrected?
<?xml version="1.0" encoding="ISO-8859-1" ?>
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Moved to <<a href="http://example.org/">http://www.example.org/</a>.>
Answers: (choose 2)
The document is completely valid
All special XML characters must be represented as entities within the content of a node
All tags must be closed
You cannot specify a namespace for the <html> attribute
The DOCTYPE declaration is malformed
All tags must be closed (<br> to <br/>), all special XML characters must be represented as entities within the content of a node (< to <, > to > ).
Last edited by Mindzai; 07-26-2010 at 05:02 PM.
Reason: fixed accidental smiley
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread