Escaping XML Data | Xml skip character
Addingcontrolcharacters(<,>,,",&)intoxmldatacancausetheparsertomissunderstandtheresultingdata.Thesolutionistoescapethecontrolcharacterssothattheparsercaninterpretthemcorrectlyasdata,andnotconfusethemformarkup.ThefollowingisalistofallthebuiltinreplacementsChar EscapeString < < > > " " ' & & ThesecanbeusedwithinXMLattributes[1],elements[2],textandprocessing...
Adding control characters (<, >, , ", &) into xml data can cause the parser to miss understand the resulting data. The solution is to escape the control characters so that the parser can interpret them correctly as data, and not confuse them for markup.
The following is a list of all the built in replacements
Char Escape String < < > > " " ' & &These can be used within XML attributes[1], elements[2], text and processing instructions[3].
It is good practice to always escape these characters when they appear in XML data, however this is not always required.
Element and Attribute names can NOT contain characters <...