Home  >  Article  >  Backend Development  >  Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture)

Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture)

黄舟
黄舟Original
2017-04-01 13:42:035104browse

xml中某些特殊字符被解析的时候会出错  如: 

Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture)

Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture)

处理方式有以下两种: 
1、特殊字符不被解析,包住特殊字符: 

Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture)

Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture)

一些特殊字符也可用下面的替代符号所代替。 
特殊字符   替代符号 
     &            & 
          "             " 
     '             ' 

The above is the detailed content of Special characters in xml: <= less than or equal to, >= greater than or equal to, translation and processing (picture). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn