C# System.Xml.XmlException:The'=';名称中不能包含十六进制值0x3D的字符

C# System.Xml.XmlException:The'=';名称中不能包含十六进制值0x3D的字符,c#,xml,c#-4.0,C#,Xml,C# 4.0,当我试图从stringReader加载XDocument时,出现以下错误: System.Xml.XmlException: The '=' character, hexadecimal value 0x3D, cannot be included in a name. Line 1, position 496. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Thr

当我试图从stringReader加载XDocument时,出现以下错误:

System.Xml.XmlException: The '=' character, hexadecimal value 0x3D, cannot be included in a name. Line 1, position 496.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(TextReader textReader, LoadOptions options)
   at Rextester.Program.Main(String[] args)
下面是我尝试加载的代码片段:

 public class Program
    {
        public static void Main(string[] args)
        {
             String body = "<ContactBundleMaintainRequestMessage_sync><BasicMessageHeader><ID>b4cf2093e85242259f0b1b9122b75210</ID></BasicMessageHeader><Contact><UUID>4211feec-464c-4bd8-9490-f1041ed95504</UUID><LifeCycleStatusCode>2</LifeCycleStatusCode><GivenName>Carlo</GivenName><MiddleName /><FamilyName>DiBrigida</FamilyName><Relationship><RelationshipBusinessPartnerUUID>00163e11-a664-1ee8-85c3-74c6366e0886</RelationshipBusinessPartnerUUID><RoleCode>BUR027-2</RoleCode></Relationship><GroupwareSubscriptionactionCode="04"><EmployeeUUID>00163e11-a664-1ee8-85c3-74c6366e0886</EmployeeUUID></GroupwareSubscription></Contact></ContactBundleMaintainRequestMessage_sync>";
             StringReader read = new StringReader(body);
             XDocument xDoc = XDocument.Load(read);

        }
    }
公共类程序
{
公共静态void Main(字符串[]args)
{
管柱体=“b4cf2093e85242259f0b1b9122b752104211feec-464c-4bd8-9490-F1041ED955042CarlodiBrigid00163E11-a664-1ee8-85c3-74c6366e0886BUR027-200163e11-a664-1ee8-85c3-74c6366e0886”;
StringReader read=新的StringReader(主体);
XDocument xDoc=XDocument.Load(读取);
}
}

你能帮我解决这个问题吗。我在谷歌上搜索了很多次,但没有得到任何解决方案或解释它到底出了什么问题

属性必须与标记名用空格隔开:
应该是

不是XML。因此,您有一个字符串,它有点类似于XML,但不是。您不能期望XML工具能够使用它。既然我们不知道这里的目的是什么,你希望我们提供什么帮助?不要回答打字错误,这些问题必须关闭。我发布的Xml是错误的。我现在已经升级了。请检查标记名和属性之间是否缺少空格。我对答案进行了适当的编辑。@MKloster什么空格?@coders-所以这里不应该解决基本的打字错误。如果您已经对XML有了基本的了解,那么您应该了解
都不是有效的XML。如果您无法识别这里的错误,那么您需要熟悉XML、元素和属性等的基础知识,我们也不是提供基础材料的地方。