There are a few characters in XML that need to be represented in a special fashion.
Character |
Should be represented as |
Comments |
---|---|---|
< |
< |
left angle bracket |
> |
> |
right angle bracket |
& |
& |
ampersand |
' |
' |
single quote (an apostrophe) |
" |
" |
double quote |
For example, this is invalid:
<table name="myTable" groupName="bread&butter" ...>
Replacing the ampersand with the proper escaped sequence yields valid XML:
<table name="myTable" groupName="bread&butter" ...>
For more information on XML and its formatting, visit one of the many online resources, such as www.xml.com.
See Also |
Next |