I'm working on a XQuery that may/can contain characters like ">", "<" and single quotes.
How do I avoid breaking the xml parser?
My xml form is like this
<root>
<container>
<item>(d开发者_如何学C.Field <> 0)</item>
</container>
</root>
The "XML" you've shown isn't XML.
Either of the following would be XML:
<root>
<container>
<item>(d.Field <> 0)</item>
</container>
</root>
or:
<root>
<container>
<item><![CDATA[(d.Field <> 0)]]></item>
</container>
</root>
精彩评论