【发布时间】:2012-07-05 16:32:00
【问题描述】:
我正在使用 fetch xml 从 ms crm 2011 实体中检索值。 它会抛出 INVALID XML 错误,示例 xml 如下所示:
<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>
通过调查问题,我发现原因是 1 和 2 之间的 & 符号:
<value>Do you want to subscribe to 1 & 2?</value>
1- 有人可以帮我解决这个问题吗?
2- 还有哪些非法字符可以处理?
问候。
【问题讨论】:
标签: xml dynamics-crm-2011 fetchxml