Campaign SOAP API: How to specify greater-than ('>') or less-than ('<') in ExecuteQuery
Hi, I have a simple query where I'm trying to use greater-than or less-than in a query. The documentation has multiple examples of this, such as:
<where>
<condition expr="(@age > 15 or @age <= 45) and (@city = 'Newton' or @city = 'Culver City') "/>
</where>
However, when I use a similar query, <condition expr="@id < 5000"/>
I get the response:
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring xsi:type="xsd:string">The XML SOAP message is invalid (service 'ExecuteQuery', method 'xtk:queryDef').</faultstring>
<detail xsi:type="xsd:string"><![CDATA[(16:38) : A '<' character cannot be used in attribute 'expr', except through <
...
So then I try as the error message suggests and use '<' instead of <
<condition expr="@id < 5000"/>
and I get a different error message:
<faultstring xsi:type="xsd:string">The XML SOAP message is invalid (service 'ExecuteQuery', method 'xtk:queryDef').</faultstring>
<detail xsi:type="xsd:string"><![CDATA[(16:40) : Unterminated entity reference, 'lt'
How can I specify '>' or '<' in my SOAP xml to get the API ExecuteQuery to work?