S
shapper
Hello,
How to load a XML document and display it immediately after in the
browser?
Dim doc As New System.Xml.XmlDocument
doc.Load("~/XMLFile.xml")
Context.Response.ContentType = "text/xml; charset=utf-8"
Context.Response.Write(siteMap)
I tried this but I am getting a parser error:
XML Parsing Error: syntax error
Location: http://localhost:2736/GaragemRamos 2006a/_Lab.aspx
Line Number 1, Column 1:System.Xml.XmlDocument
^
This is very strange because I can't see any error in my XML sample
file:
<?xml version="1.0" encoding="utf-8" ?>
<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>two of our famous Belgian Waffles with plenty of real
maple syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>light Belgian waffles covered with strawberries and
whipped cream</description>
<calories>900</calories>
</food>
</breakfast_menu>
Thanks,
Miguel
How to load a XML document and display it immediately after in the
browser?
Dim doc As New System.Xml.XmlDocument
doc.Load("~/XMLFile.xml")
Context.Response.ContentType = "text/xml; charset=utf-8"
Context.Response.Write(siteMap)
I tried this but I am getting a parser error:
XML Parsing Error: syntax error
Location: http://localhost:2736/GaragemRamos 2006a/_Lab.aspx
Line Number 1, Column 1:System.Xml.XmlDocument
^
This is very strange because I can't see any error in my XML sample
file:
<?xml version="1.0" encoding="utf-8" ?>
<breakfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>two of our famous Belgian Waffles with plenty of real
maple syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>light Belgian waffles covered with strawberries and
whipped cream</description>
<calories>900</calories>
</food>
</breakfast_menu>
Thanks,
Miguel