Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Please any one suggest me for xml issue.
I want to add property in xml node URL, which contains multiple querysting parameters.

how can i write it into xml.

right now i am facing following error.
'=' is an unexpected token. The expected token is ';'. Line 1, position 4592.

My xml is like as following.
<urls url1="" />

Please halp me.

Thank you.

1 solution

No, there is no such thing. Check up with XML syntax. At the same time, your XML sample is well-formed; it has one attribute with one value.
Share this answer
AbidHussain128 11-Jun-13 7:07am    
SA thanks for reply,

Is there any way to pass URL with query string in to XML? (any alternative way).
Sergey Alexandrovich Kryukov 11-Jun-13 7:12am    
Why alternative? Your way would work fine. Alternative to the attribute it the text value (text node), that is the plain text inside the tag.
Anyway, this is not a correct questions, because, for XML, attribute is attribute, element is element, etc. There is no "URL" or other semantic.
H.Brydon 16-Jun-13 23:26pm    
Keep in mind that (depending on which language you are using, C# or otherwise) there will be some "escape" stuff that you might have to do... especially if you change the text from attribute to element. Don't forget that single quote, double quote, "|" and "&" characters can show up in URLs and will be problematic in different ways (text here vs attribute in C# string vs element in C# string).

+5 (I've given you about 10 of them today)
Sergey Alexandrovich Kryukov 17-Jun-13 0:14am    
Good points. Thank you, Harvey.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900