CI

CI

  • NA
  • 25
  • 0

Multiple XML namespaces

Jul 16 2004 6:27 AM
Hi, As part of an application, I have to generate an XML file at the end. The namespace on the generated XML file should be like: I have tried all kinds of things like: XmlTextWriter textWriter = new XmlTextWriter("C:\\myXmFile.xml", System.Text.Encoding.UTF8); and then textWriter.WriteStartElement("vl", "VNETList", "http://www.abc.com"); // This line writes only: textWriter.WriteAttributeString("VNETList", "http://www.abc.com"); textWriter.WriteAttributeString("VNETList", "http://www.def.com"); textWriter.WriteAttributeString("vl", "http://www.def.com"); But how can I write exactly this: Thanks.

Answers (1)