0

I'm trying to drop the following link into an XML file and it is kicking back an error.

<link URL="http://hqgoogle1/search?site=bolt_collection&client=bolt_frontend&output=xml_no_dtd&proxystylesheet=bolt_frontend&proxycustom=%3cHOME/" TitleText="" LinkText="BOLT" />

Error:

This is an unexpected token. The expected token is 'SEMICOLON'. Line 47, position 69.

I can't for the life of me figure out why this is happening. The link is valid and works fine. Is there something with the "&c" that break the XML?

4

1 回答 1

1

这是因为&是实体的前缀,必须以 . 结尾;。只需将所有&s替换&amp;为您的属性。&amp;表示&XML 中的一个。

于 2012-08-09T16:55:24.020 回答