views:

44

answers:

2

Why is Xul app saying

XML Parsing Error: not well-formed

for:

    <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&img2=img2.jpg" flex="4"/>

at the equals sign of &img2=img2.jpg"?

Note that it works without the parameters.

+4  A: 

Ampersand &..

The xml escape is generally &amp;

<browser class="AppBar" type="content" src="test.html?img1=img1.jpg&amp;img2=img2.jpg" flex="4"/>
Quintin Robinson
Got it.. By the way, how's that way using [CODE] keyword to scape code? do you know?
Tom Brito
I'm sorry, I don't understand what you mean.
Quintin Robinson
+2  A: 

Change & to &amp;

You also have to do this for

' -> &apos;
< -> &lt;
> -> &gt;
" -> &quot;
Jonas Elfström