Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I turn a XML file into a xml string?
Message
De
19/02/2008 13:02:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/02/2008 11:53:39
Information générale
Forum:
ASP.NET
Catégorie:
XML
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Divers
Thread ID:
01292996
Message ID:
01293873
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform