How to read tags?
I am using the following code to read a XML file & write down its entire contents.
if fso.FileExists(sFname) then
Set tso = fso.OpenTextFile(sFname, 1, False)
Application(sVarName) = tso.ReadAll()
Response.Write Application(sVarName)
end if
But if the file contains "<book><bname>Programming in C</bname></book>,
the sVarName only contains "Programming in C" and doesn't contain the tags.
What shud I do to get the file contents as is?
|