Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Some characters cause a smart tag list to fail


View products that this article applies to.

Symptoms

When you install a Smart Tag List and then start Microsoft Excel, the Smart Tag List fails to load. Alternatively, in Microsoft Internet Explorer, when you open the Extensible Markup Language (XML) file created for a Smart Tag List, you receive an error message similar to the following:
The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

A semi colon character was expected.

↑ Back to the top


Cause

The ampersand (&), quotation mark ("), apostrophe ('), and element delimeters (<) and (>), are not allowed within parsed character data, such as a Uniform Resource Locator (URL).

↑ Back to the top


Workaround

To work around the issue, use either of the following methods.

Method 1: Use Entity References

Use entity references instead of the actual characters:
  • Instead of &, use &amp;
  • Instead of ", use &quot;
  • Instead of ', use &apos;
  • Instead of <, use <
  • Instead of >, use >
For example, in the following URL
<FL:url>http://search.microsoft.com/us/SearchMS25.asp?so=RECCNT&qu={TEXT}</FL:url> 
				
you can replace the ampersand with &amp; as below:
<FL:url>http://search.microsoft.com/us/SearchMS25.asp?so=RECCNT&amp;qu={TEXT}</FL:url>
				

Method 2: Use the CDATA Construct

Use the CDATA construct, which treats the entire string as plain text, for example:
http://search.microsoft.com/us/SearchMS25.asp?so=RECCNT&amp;qu={TEXT}

↑ Back to the top


References

For more information about smart tag lists, click the following article number to view the article in the Microsoft Knowledge Base:
287698 How to create a Microsoft Office smart tag list
For more information about XML, entity references, and the CDATA construct, see the XML Developer's Guide at the Microsoft Developer Network Library.

↑ Back to the top


Keywords: KB295008, kbprb, kberrmsg

↑ Back to the top

Article Info
Article ID : 295008
Revision : 3
Created on : 1/31/2007
Published on : 1/31/2007
Exists online : False
Views : 341