XML special character dispose

XML have five special character which had been used to express document structure ,just as < ,> ,& ,",'. If you want use those special character ,you need use other special expression .For XML resolver can read those character,this have two way to solve the problem.
One way is that you can use escape character to replace those character . I list escape character at below.For example , "<" can be replaced by "& lt;" ,">" use "& gt;" ,"&" use "& amp;" , """ use "& quot;" ,"'" use "& apos;" .The importantly,please not forget the end character of ";".
The other way ,you can use two word to surround your special character . For example , in front of sentence add word "" . So you avoid escape character to replace your special character one by one , you can use this way to surround many special character for XML.

你可能感兴趣的:(XML special character dispose)