Fix: XML Parsing Error due to use of &, < and > characters

Today I want to discuss about the issue I faced sometime back when I used & character in my XML file.

While running the solution when my XML file loaded/parsed, I got error saying & is not a valid character.
 
After looking for a while, I got a solution that I need to replace & with & and it worked.
 
Below are some other commonly used characters and their supported counterpart in XML.
  • <    -->    &lt;  (XML) 
  • >    -->    &gt;  (XML)
Hope you found this information/fix useful. Please share your comments.
 
Happy coding!
X

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now