If an aspx file compiles, is it safe to assume that it is valid XML?
Does ASP.NET work by parsing the server controls as XML?
No - only the asp controls need to be valid XML. It is completely "legal" to write non-XHTML code in an ASPX file.