This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20744|Reply: 1

[Source] When XML processes SQL statements, it processes the transformation of less than and greater than signs

[Copy link]
Posted on 11/9/2017 11:06:51 AM | | |
When we need to process SQL statements through XML format, we often use symbols such as <, <=, >, >=, etc., but it is easy to cause errors in XML format, which will cause errors when converting XML strings to XML documents in the background, resulting in program errors.
Such problems often need to be dealt with in iBatiS or in custom xml processing programs. It's simple, we can avoid the above errors by making the following substitutions:
Original symbol  <   <=   >   >=    &     '      "
Replace the symbol&lt;&lt;=&gt;&gt;=&amp;&apos;
&quot;






Previous:Jquery gets the rows selected in the table
Next:.net/c# implements DNS hijacking source code
Posted on 11/9/2017 11:58:47 AM |
I have encountered this problem, it turns out that I wrote the sql statement into the web.config, and then it reported an error, and the special symbol needs to be escaped
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com