Hey,
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?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>
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


Reply With Quote

Bookmarks