how to write xml in c#.net

xml India
  • 13 years ago
    Hello can anyone help me in getting the xml file's root node in the following format.
    Here Schedule is root node.

    I am using the XmlTextWriter class.


    <tns:schedule xmlns:tns="http://www.Mycompany.com/Schedule" xmlns:dt="http://www.Mycompany.com/DataTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.Mycompany.com/Schedule Schedule.xsd" scheduleType="Playback" version="1.0" creationTime="2006-01-29T00:00:00" originator="Mycompany">
      <scope startTime="2006-01-29T04:00:00" stopTime="2006-01-29T06:00:00" />
    - <channelRef id="05" action="Noop">
      <source url="ucast://192.168.3.110:10000" />
      </channelRef>

    Can anyone help me in this regards...

    Thanks



















Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“My definition of an expert in any field is a person who knows enough about what's really going on to be scared.” - P. J. Plauger