Hi Vince,
As I understabd, you want to parse the DOM element for a HTML file in ASP
server script. To achieve this, we may read the HTML file with FSO and Load
it in a HTMLDocument object, for example:
<%@Language=VBScript CODEPAGE=65001 %>
<%
Dim doc
Set doc = CreateObject("HTMLFILE")
dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
dim htmlFile
set htmlFile= objFSO.OpenTextFile("c:\test.html")
doc.write htmlFile.ReadAll
'doc.body.innerText="hello world"
Response.Write doc.documentElement.outerHTML
%>
Hope this answer your question,
Regards,
Luke
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)