Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
<select> option cannot contain & character
lcarr
TeamSite 5.5.2 Windows 2000
DCT contains a select with options (drop down list box)
<item name="Alert Type">
<select required="t" multiple="f">
<option label="New Country & Corridor" value="New Country/Corridor"/>
<option label="New Service/Product" value="New Service/Product"/>
</select>
</item>
If the label or value in the above contains a &, I get the following error:
A ParseException was thrown: Error parsing Data Capture Template of alert/agent_alert: Stopping after fatal error: The entity name must immediately follow the '&' in the entity reference.
If I remove the ampersand, all is fine. Why is it illegal to have an & here? Is there a workaround?
(note: In my actual implementation, I am reading the option name/value pairs from a database.)
Find more posts tagged with
Comments
Migrateduser
yes, because "&" is a reserved character in XML.
try:
<option label="New Country & Corridor" value="New Country/Corridor"/>