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. Andrew R. Thomas-Cramer

    XMLTextWriter: closing a starting element tag

    Andrew R. Thomas-Cramer, Jul 22, 2003, in forum: Microsoft C# .NET
    Replies:
    0
    Views:
    256
    Andrew R. Thomas-Cramer
    Jul 22, 2003
  2. Pums

    MEmory stream, file stream

    Pums, Dec 11, 2003, in forum: Microsoft C# .NET
    Replies:
    4
    Views:
    1,071
  3. Guest
    Replies:
    0
    Views:
    189
    Guest
    Jan 20, 2005
  4. k-lo
    Replies:
    0
    Views:
    202
  5. Marc Gravell

    Using XmlTextWriter without closing the base stream

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

    Empty XmlElements creating new line

    Zief, Nov 2, 2006, in forum: Microsoft C# .NET
    Replies:
    3
    Views:
    472
  7. Replies:
    1
    Views:
    1,082
    Nicholas Paldino [.NET/C# MVP]
    Sep 24, 2007
  8. Nitin Mahajan

    Create word doc from a memory stream NO file stream used

    Nitin Mahajan, Jul 24, 2008, in forum: Microsoft C# .NET
    Replies:
    5
    Views:
    3,463
    Nitin
    Jul 29, 2008
Loading...