2013-10-16 2 views
6
XML comment contains invalid XML: A name was started with an invalid character 

이것은받은 IntelliSense 설명서 메시지입니다. 뭔가 분명히 내 설명서가 잘못되었지만 찾을 수 없습니다.잘못된 XML 메모 : 잘못된 문자

/// <summary> 
    /// The local-part of an email adress may use any of these ASCII characters (As according to RFC 5322 <see href="http://tools.ietf.org/html/rfc5322"></see>): 
    /// - Uppercase and lowercase English letters (a–z, A–Z) (ASCII: 65-90, 97-122) 
    /// - Digits 0 to 9 (ASCII: 48-57) 
    /// - Characters !#$%&'*+-/=?^_`{|}~ (ASCII: 33, 35-39, 42, 43, 45, 47, 61, 63, 94-96, 123-126) 
    /// - Character . (dot, period, full stop) (ASCII: 46) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively (e.g. [email protected] is not allowed.) 
    /// - Special characters are allowed with restrictions. They are: Space and "(),:;<>@[\] (ASCII: 32, 34, 40, 41, 44, 58, 59, 60, 62, 64, 91-93) 
    /// - The restrictions for special characters are that they must only be used when contained between quotation marks, and that 3 of them (The space, backslash \ and quotation mark " (ASCII: 32, 92, 34)) must also be preceded by a backslash \ (e.g. "\ \\\""). 
    /// </summary> 

내 생각은 모든 문자와 함께 할 수있는 뭔가가,하지만 난이 라인에

답변

13

... 정말 몰라 있다는 것이다 다음 < 문자로 해석됩니다

/// - Special characters are allowed with restrictions. They are: Space and "(),:;<>@[\] (ASCII: 32, 34, 40, 41, 44, 58, 59, 60, 62, 64, 91-93) 

Xml 태그의 시작 (및 > 끝으로). 각각 &lt;&gt;으로 바꿉니다. &과 같은 다른 문자를 &amp;으로 이스케이프해야 할 수도 있습니다.

Here is a comprehensive list of Xml/Html 문자 엔티티.

+0

감사합니다. 나를 허용 할 때 2 분 안에 받아 들일거야 :) – user1021726