There are a number of characters that require special treatment to include them as part of a string in xml files. This is important to be aware of when writing batch files.
|
Character |
Character Name |
Character as Used in XML Files |
|---|---|---|
|
& |
ampersand |
& |
|
< |
Less than |
< |
|
> |
Greater than |
> |
|
" |
Quotation mark |
" |
|
' |
Apostrophe |
' |
Invalid use of the & character in an XML string:
<Organization>Discovery & Auditing</Organization>
Valid use of the & character in an XML string XML:
<Organization>Discovery & Auditing</Organization>
The '&' used in the invalid string is replaced by '&' in the valid use of the XML string.
| Copyright © 2010 CA. All rights reserved. | Email CA Technologies about this topic |