2013-10-16 14 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) 

< चरित्र के रूप में व्याख्या की जाएगी एक एक्सएमएल टैग की शुरुआत (और > अंत के रूप में)। इन्हें &lt; और &gt; क्रमशः बदलें। आपको शायद & जैसे &amp; के साथ अन्य पात्रों से बचने की आवश्यकता होगी।

Here is a comprehensive list एक्सएमएल/एचटीएमएल चरित्र इकाइयों के।

+0

धन्यवाद, अब काम करता है! मैं इसे 2 मिनट में स्वीकार करूंगा जब यह मुझे अनुमति देगा :) – user1021726

संबंधित मुद्दे