So I’m writing some XML generating code, and found that the following attribute value was screwing up the XML formatting:
'Jim/Bob'
So I looked into the XML Entities used as escape sequences and every list I saw did not include one for the forward slash. Am I missing something obvious here? Seems like the sort of thing you’d want to escape…
The forward slash is valid as is and does not need further encoding.
The only reserved characters are:
For even more XML entities – http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references