Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I turn a XML file into a xml string?
Message
From
19/02/2008 13:02:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/02/2008 11:53:39
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01292996
Message ID:
01293873
Views:
22
This message has been marked as the solution to the initial question of the thread.
>Thanks for the reply Cetin
>
>I tried this code
>
>Dim FileName As String = Server.MapPath("XMLBrochure.xml")
>
>Dim rdr As TextReader = New StreamReader(FileName)
>Dim content As String = rdr.ReadToEnd
>rdr.Close()
>Console.WriteLine(content)
>Response.Write(content)
>Label1.text = content
>
>and i am still just getting the values within the xml tags and not the actual tags and the data together.
>
>Any ideas where i am going wrong?
>
>Thanks
>
>Bilal.

You have Response.Write there and Server.Mappath. In a browser it'd render. Use HtmlEncode to prevent rendering.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform