BubikolRamios
08-02-2011, 11:18 AM
<%
if (some condition that is false)
{
//so this does not gets executed
out.println("Access denied, members only !");
return ;
}
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
.....
1.if I look at page source: there is no text like "Access denied, members only !". As expected.
2. validate:
Validation Output: 3 Errors
Error Line 21, Column 1: document instance must start with document element
Access denied, members only !
✉
Error Line 21, Column 1: character data is not allowed here
Access denied, members only !
✉
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
Error Line 21, Column 30: no document element
Access denied, members only !
?
if (some condition that is false)
{
//so this does not gets executed
out.println("Access denied, members only !");
return ;
}
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
.....
1.if I look at page source: there is no text like "Access denied, members only !". As expected.
2. validate:
Validation Output: 3 Errors
Error Line 21, Column 1: document instance must start with document element
Access denied, members only !
✉
Error Line 21, Column 1: character data is not allowed here
Access denied, members only !
✉
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
Error Line 21, Column 30: no document element
Access denied, members only !
?