<%@ LANGUAGE=JScript %>

<HTML>

<HEAD></HEAD>

<BODY>
   <% 
     var xmlDocument =
        Server.CreateObject("Microsoft.XMLDOM");

      xmlDocStr = Request.Form("docStr");
     xmlDocument.validateOnParse = true;
     xmlDocument.loadXML(xmlDocStr);
     if (xmlDocument.parseError.errorCode !=0)
        Response.Write(xmlDocument.parseError.reason)
     else
        Response.Write("Your document is valid and well-formed!");
   %>
</BODY>

</HEAD>

</HTML>