/    Sign up×
Community /Pin to ProfileBookmark

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>
[/code]

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

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiJul 26.2010 — 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; ).
×

Success!

Help @crmpicco spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...