2011-09-08 103 views
8

我正在使用摘要属性在VS 2010中记录我的类成员。当我构建项目时,构建XML文件(稍后将在开发中使用它)。其中一个类成员的摘要不包含在XML文件中,而是出现错误“未成形的XML注释被成员忽略”。摘要,对成员忽略的格式严重的XML注释

摘要是文字如下。我不明白格式不正确。我应该转换&字符并使用%26而不是?

/// <summary> 
    /// URI of a web page to convert. Must start with http:// or https://. Several URI of web pages can be passed to create one PDF. For example if http://www.google.com+http://www.nytimes.com URI will be passed the two web pages will be merged into one PDF. 
    /// If URI has special characters like ? or & they must be encoded. 
    /// </summary> 

回答

15

由于它是XML,所以您必须对特殊字符进行编码。您的&符号(以前已经咬过我)需要用&amp;替换。

2

是的,你应该逃脱&,为&amp;