我需要将以下属性添加到XElement中:
<xmlns="http://www.mysite.com/myresource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mysite.com/myresource TheResource.xsd">
因为有“:”符号,将它们作为XAttribute添加是不起作用的,而且我确定这也不是正确的方法。我该如何在那里添加它们?