Problem in storing URL in XML file
-
Hi! i am storing the user defined URL in XML file by using C#. I am storing that URL inside the tag as InnerText. if i store the URL "http://www.google.com" it works perfectly, but when i try to store the URL "http://www.google.com/search?hl=en&q=abc" it corrupts the XML file and gives error "A semi colon character was expected." can anybody tell me what is the reason behind this error...? Thanks, Regards, Affan Ahmad Toor
-
Hi! i am storing the user defined URL in XML file by using C#. I am storing that URL inside the tag as InnerText. if i store the URL "http://www.google.com" it works perfectly, but when i try to store the URL "http://www.google.com/search?hl=en&q=abc" it corrupts the XML file and gives error "A semi colon character was expected." can anybody tell me what is the reason behind this error...? Thanks, Regards, Affan Ahmad Toor
Hi I am quiet sure that the & is the error because it is a special sign in XML. If it also doesn´t work than i might suggest the ?. Thats the two possabilities. Hope i helped.
-
Hi I am quiet sure that the & is the error because it is a special sign in XML. If it also doesn´t work than i might suggest the ?. Thats the two possabilities. Hope i helped.
Thanks for reply, i checked the & sign as you suggested. You was rite, the error was because of the & sign. Looking forward for more help from you in future... Thanks again... Regards, Affan Ahmad Toor
-
Thanks for reply, i checked the & sign as you suggested. You was rite, the error was because of the & sign. Looking forward for more help from you in future... Thanks again... Regards, Affan Ahmad Toor
No prob. thx See you
-
Thanks for reply, i checked the & sign as you suggested. You was rite, the error was because of the & sign. Looking forward for more help from you in future... Thanks again... Regards, Affan Ahmad Toor
You can overcome this prob by writing & I think. Just if you don´t have a solution. :)
-
You can overcome this prob by writing & I think. Just if you don´t have a solution. :)
You mean by writing: &
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
You mean by writing: &
"We make a living by what we get, we make a life by what we give." --Winston Churchill
sure :) sorry
-
Hi! i am storing the user defined URL in XML file by using C#. I am storing that URL inside the tag as InnerText. if i store the URL "http://www.google.com" it works perfectly, but when i try to store the URL "http://www.google.com/search?hl=en&q=abc" it corrupts the XML file and gives error "A semi colon character was expected." can anybody tell me what is the reason behind this error...? Thanks, Regards, Affan Ahmad Toor
replace & sign with amp; rupesh