title: define schemaLocation in Attribute
body: <p>I want to generate this xml header:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ru:myobject XML_DATA="2.1.0"
      xmlns:ru="http://www.aaa.com" xmlns:t="http://www.bbb.com"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
  http://www.aaa.com aaa.xsd
  http://www.bbb.com bbb.xsd
  http://www.ccc.com ddd.xsd"&gt;
  </code></pre>
  
  <p>The problem is the namespace in <code>xsi:schemaLocation</code> attribute. </p>
  
  <p>here is my code:</p>
  
  <pre><code>XNamespace mynamespace = "http://www.aaa.com/test/";
  XNamespace xsi = "http://www.aaa.com/test/ aaa.xsd http://www.bbb.com bbb.xsd http://www.ccc.com ccc.xsd";
  XElement myobject = new XElement(mynamespace + "myobject", new XAttribute("XML_DATA", "2.1.0"));
  myobject.Add(new XAttribute(XNamespace.Xmlns + "ru", "http://www.aaa.com"));
  myobject.Add(new XAttribute(XNamespace.Xmlns + "t", "http://www.bbb.com"));
  myobject.Add(new XAttribute(XNamespace.Xmlns + "xsi", "http://www.w3.org/2001/XMLSchema-instance"));
  
  myobject.Add(new XAttribute(xsi+"schemaLocation", xsi.ToString()));
  </code></pre>
  
  <p>It generates this header and I don't know why. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ru:myobject XML_DATA="2.1.0"
  xmlns:ru="http://www.aaa.com" xmlns:t="http://www.bbb.com"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  p3:schemaLocation=" http://www.aaa.com aaa.xsd http://www.bbb.com bbb.xsd http://www.ccc.com ddd.xsd"
  xmlns:p3="http://www.aaa.com aaa.xsd http://www.bbb.com bbb.xsd http://www.ccc.com ddd.xsd"&gt;
  </code></pre>