Search code examples
asp.netxmlcontrolswebformsasp.net-controls

Is it safe to rely on an ASPX file being valid XML?


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?


Solution

  • No - only the asp controls need to be valid XML. It is completely "legal" to write non-XHTML code in an ASPX file.