& Ampersand in <item>

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

& Ampersand in <item>

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: & Ampersand in <item>

Post 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?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: & Ampersand in <item>

Post by djrikki »

Nvm.

Your solution makes perfect sense, forget what I said.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply