www.webdeveloper.com
Results 1 to 2 of 2

Thread: XML HTML namespace and DOCTYPE (Zend Cert)

  1. #1
    Join Date
    Apr 2006
    Posts
    245

    Thumbs up XML HTML namespace and DOCTYPE (Zend Cert)

    Hey,

    Can anyone assist with this Zend Certification mock question? Any help appreciated.

    Consider the following example XML document:

    Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     <head>
      <title>XML Example</title>
     </head>
     <body>
      <p>
       Moved to <<a href="http://example.org/">http://www.example.org/</a>.>
       <br>
      </p>
     </body>
    </html>
    What is wrong with this document, and how can it be corrected?

    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

    Cheers,
    Picco

  2. #2
    Join Date
    Nov 2008
    Posts
    2,477
    All tags must be closed (<br> to <br/>), all special XML characters must be represented as entities within the content of a node (< to &lt;, > to &gt; ).
    Last edited by Mindzai; 07-26-2010 at 04:02 PM. Reason: fixed accidental smiley
    The first rule of Tautology Club is the first rule of Tautology Club.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles