Page 1 of 1

& Ampersand in <item>

Posted: Mon Jun 24, 2013 9:45 pm
by djrikki
Hello,

Code: Select all

<item id="something" userdata="Music & Video:">Music & Video</item>
This fails reporting XML-malformed (invalid token) when attempting to create the GUI.. how do I correctly escape ampersands?

Maybe I should also add that this is within a menustrip.

Even if I can find a way to escape theses out its still annoying that the interface doesn't handle these correctly.

Re: & Ampersand in <item>

Posted: Tue Jun 25, 2013 3:27 pm
by airsoftsoftwair
djrikki wrote:Hello,

Code: Select all

<item id="something" userdata="Music & Video:">Music & Video</item>
This fails reporting XML-malformed (invalid token) when attempting to create the GUI.. how do I correctly escape ampersands?
Just use & as defined by the XML standard.
Even if I can find a way to escape theses out its still annoying that the interface doesn't handle these correctly.
What do you mean by that?

Re: & Ampersand in <item>

Posted: Tue Jun 25, 2013 11:18 pm
by djrikki
Nvm.

Your solution makes perfect sense, forget what I said.