load aspx file into xmldocument

rplpaula1

New Member
I want to be able to load aspx page into XmlDocument variable. How do I do that? Here is what I have tried and its expecting .xml file and not .aspx page. Is there any way to convert aspx page on the fly into xml document and load it? thanks\[code\]string filePath = @"C:\WebApplication1\webform4.aspx";XmlDocument document = new XmlDocument();document.Load(filePath);\[/code\]I get the following error:Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.
 
Back
Top