62,074
社区成员
发帖
与我相关
我的任务
分享
XmlDocument doc = new XmlDocument();
XmlElement root = doc.CreateElement("offers");
doc.AppendChild(root);
XmlAttribute xsi = doc.CreateAttribute("xmlns:xsi");
xsi.Value = "http://www.w3.org/2001/XMLSchema-instance";
XmlAttribute xsispace = doc.CreateAttribute("xsi:noNamespaceSchemaLocation");
xsispace.Value = "feed.xsd";
root.Attributes.Append(xsi);
root.Attributes.Append(xsispace);
XmlDocument doc = new XmlDocument();
XmlElement root = doc.CreateElement("offers");
doc.AppendChild(root);
XmlAttribute xsi = doc.CreateAttribute("xmlns:xsi");
xsi.Value = "http://www.w3.org/2001/XMLSchema-instance";
XmlAttribute xsispace = doc.CreateAttribute("xsi:noNamespaceSchemaLocation","http://www.w3.org/2001/XMLSchema-instance");
xsispace.Value = "feed.xsd";
root.Attributes.Append(xsi);
root.Attributes.Append(xsispace);