xml

You are currently browsing articles tagged xml.

Export XML

today i found a problem to export xml (dialog popup).
this code i found it in www.west-wind.com
in reply by Befekadu and answer by Rick Strahl.

[sourcecode language='vb']
Dim doc As XmlDocument = New XmlDocument()
‘doc.LoadXml(“Everyday Italian Giada De Laurentiis 2005 30.00″)
‘i use load xml file to export
doc.Load(Server.MapPath(“myXML.xml”))
Response.ContentType = “text/plain”
Response.AppendHeader(“Content-Disposition”, “attachment; filename=xmlFile.xml”)
doc.Save(Response.OutputStream)
Response.End()
[/sourcecode]

finish!! it’s a easy code but i can’t do it T.T
thank you very much.

Tags: , ,