Crm 2011 Fetch XMl - Invalid XML issue, how to fix?

Tibreinhene

New Member
I am using fetch xml to retieve values from ms crm 2011 entities. it throws INVALID XML error, the sample xml is given below:\[code\]<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'> <entity name='xyz_registrationanswer'> <attribute name='xyz_registrationid' /> <attribute name='xyz_name' /> <filter type='and'> <condition attribute='xyz_name' operator='in' > <value>Do you want to subscribe to 1 & 2?</value> </condition> </filter> <order attribute='xyz_name' descending='false' /> </entity></fetch>\[/code\]By invistigating the issue i found the cause which is the & sign between 1 and 2:\[code\]<value>Do you want to subscribe to 1 & 2?</value> \[/code\]1- Can someone help me how to fix this issue?2- What are other illegal characters so i can handle them?Regards.
 
Back
Top