whitespace « Validation « JSP-Servlet Q&A





1. Whitespace before XML declaration from JSP    stackoverflow.com

I'm trying to achieve full XHTML transitional validation of my JSP output but I've hit a snag. The top of the header looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ...