xml中怎麽添加noNamespaceSchemaLocation和xsi-CSDN論壇
XmlDocument doc = new XmlDocument(); XmlElement root = doc.CreateElement("AmazonEnvelope"); root.SetAttribute("xmlns:xsi", "XMLSchema-instance"); root.SetAttribute("noNamespaceSchemaLocation", "XMLSchema-instance", "amzn-envelope.xsd"); doc.AppendChild(root); doc.Save("TestEE.xml");