Getting DataSet into an XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • K Viltersten

    Getting DataSet into an XML

    I'm obtaining a DataSet object and then foreach
    loop through it's Rows, aiming at creating a
    XML. However, i have two wonderings here.

    1. Do i really need to get the individual
    elements of a row as an array of Object objects?
    I'd prefer string class objects WITHOUT casting
    them into it.

    2. Is there a smooth way to convert a while
    DataSet object into an XML, by any chance?

    --
    Regards
    Konrad Viltersten
    ----------------------------------------
    May all spammers die an agonizing death;
    have no burial places; their souls be
    chased by demons in Gehenna from one room
    to another for all eternity and beyond.


  • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

    #2
    Re: Getting DataSet into an XML

    K Viltersten wrote:
    I'm obtaining a DataSet object and then foreach
    loop through it's Rows, aiming at creating a
    XML. However, i have two wonderings here.
    >
    1. Do i really need to get the individual
    elements of a row as an array of Object objects?
    I'd prefer string class objects WITHOUT casting
    them into it.
    >
    2. Is there a smooth way to convert a while
    DataSet object into an XML, by any chance?
    The DataSet WriteXml method ?

    Arne

    Comment

    • HillBilly

      #3
      Re: Getting DataSet into an XML

      And how many rooms are in Gehenna anyway?

      "Arne Vajhøj" <arne@vajhoej.d kwrote in message
      news:4894c251$0 $90269$14726298 @news.sunsite.d k...
      >K Viltersten wrote:
      >I'm obtaining a DataSet object and then foreach
      >loop through it's Rows, aiming at creating a
      >XML. However, i have two wonderings here.
      >>
      >1. Do i really need to get the individual
      >elements of a row as an array of Object objects?
      >I'd prefer string class objects WITHOUT casting
      >them into it.
      >>
      >2. Is there a smooth way to convert a while
      >DataSet object into an XML, by any chance?
      >
      The DataSet WriteXml method ?
      >
      Arne

      Comment

      • sloan

        #4
        Re: Getting DataSet into an XML


        DataSet.WriteXm l would be the easiest file based.

        Check here for an alternate idea, if you want a different xml output format.

        http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!148.entry


        I think you should describe what you're doing in more detail.

        What are you starting with?
        Where do you want to get to?
        Do you want it in a file, memory or what?




        "K Viltersten" <tmp1@vilterste n.comwrote in message
        news:6fjt04Fbvl 7kU1@mid.indivi dual.net...
        I'm obtaining a DataSet object and then foreach
        loop through it's Rows, aiming at creating a
        XML. However, i have two wonderings here.
        >
        1. Do i really need to get the individual
        elements of a row as an array of Object objects?
        I'd prefer string class objects WITHOUT casting
        them into it.
        >
        2. Is there a smooth way to convert a while
        DataSet object into an XML, by any chance?
        >
        --
        Regards
        Konrad Viltersten
        ----------------------------------------
        May all spammers die an agonizing death;
        have no burial places; their souls be
        chased by demons in Gehenna from one room
        to another for all eternity and beyond.
        >

        Comment

        Working...