adding xmlElements in a stream XmlTextWriter..

Discussion in 'Microsoft C# .NET' started by genc_ ymeri at hotmail dot com, Dec 7, 2004.

  1. Hi,
    I have a list of objects that have a ToXML() method (not yet determine what
    type I have to do it).

    I want to add each of their XML representantive to a the while XML file
    being build in as a stream one with XmlTextWriter,

    in other words I would like to do something like

    foreach(MyObject obj in MyList)
    {
    myWholeList.addNode(obj.ToXML());
    }

    Any tip will very much appreciated.

    Thank You.
     
    genc_ ymeri at hotmail dot com, Dec 7, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    0
    Views:
    145
    Guest
    Jan 20, 2005
  2. k-lo
    Replies:
    0
    Views:
    159
  3. Marc Gravell

    Using XmlTextWriter without closing the base stream

    Marc Gravell, Feb 2, 2006, in forum: Microsoft C# .NET
    Replies:
    8
    Views:
    1,151
    Jon Skeet [C# MVP]
    Feb 2, 2006
  4. Zief

    Empty XmlElements creating new line

    Zief, Nov 2, 2006, in forum: Microsoft C# .NET
    Replies:
    3
    Views:
    377
  5. Replies:
    1
    Views:
    789
    Nicholas Paldino [.NET/C# MVP]
    Sep 24, 2007
Loading...

Share This Page