Simple question. If I attempt to look at
<?xml version='1.0'?>
<test key="blah('foo=1&bar=2')">
</test>
in Firefox, it complains
XML Parsing Error: not well-formed
Location: file:///C:/tmp/dump2.xml
Line Number 2, Column 27:
<test key="blah('foo=1&bar=2')">
--------------------------^
Why is this? What do I need to escape?
is not well-formed XML. Use:
EDIT:
Error message in Oxygen XML Editor:
That means
&baris parsed as entity reference, but here is syntax error, that is, missing;. You need to escape&character using predefined entity (one of five)&.