I have this in a XML doc.
<userdata name='filter'>&SearchExpression[0].Key=Id&SearchExpression[0].Value=1&</userdata>
The value is a query which will be added to an url.
It keeps failing to parse. It says the document isn’t well formatted. The parser is pointing at the bracket “[“
Could the bracket causing the error ?
How can I parse a XML file with a bracket ?
Change your xml to this:
It means the same, but allows you to have special characters in the element inner text.
You can read more about CDATA here.