Adding multiple namespace declarations in XmlWriter

后端 未结 3 730
感动是毒
感动是毒 2020-12-14 15:57

I am trying to write out the following element using XmlWriter



        
3条回答
  •  青春惊慌失措
    2020-12-14 16:51

    writer.WriteAttributeString("xmlns","gx", null, "http://www.google.com/kml/ext/2.2");
    writer.WriteAttributeString("xmlns","kml", null, "http://www.opengis.net/kml/2.2");
    writer.WriteAttributeString("xmlns","atom", null, "http://www.w3.org/2005/Atom");
    

    Got that from https://msdn.microsoft.com/en-us/library/cfche0ka(v=vs.100).aspx.

提交回复
热议问题