XML Entity References

Some symbols cannot be used with XML because most XML parsers will choke on them usually throwing an error.  So you must replace these symbols with their entity reference.  An entity reference begins with an ampersand and ends with a semi-colon and in between includes a multi-character code that represents the original value.


Less than (<): replace with &lt;
Greater than (>): replace with &gt;
Ampersand (&): replace with &amp;
Apostrophe ('): replace with &apos;
Quotation mark ("): replace with &quot;

Comments

Popular posts from this blog

Debug VBScript / VBS files in Visual Studio 2010

A good use of Common Table Expressions

Setting Up Visual Studio Environment for Selenium