Re: WriteXML




Hi Kevin,

Thank you for your replies.

I'm able to add the rows fine. I've verified their contents and everything
(using the immediate window). It's just when I write the xml (last line)
there's nothing in the file except

<?xml version="1.0" standalone="yes"?>
<NewDataSet />

No data. What am I doing wrong? (Snippet posted below again.)

{

DataSet dsTemp = new DataSet();

Ds.spGetCardioScheduleDataTable CS = new Ds.spGetCardioScheduleDataTable();

DataTable _dtEchoExport = new Ds.spGetEchosDataTable();

Ds.spGetCardioScheduleRow csRow = (Ds.spGetCardioScheduleRow) CS.NewRow();

Ds.spGetEchosRow ecRow = (Ds.spGetEchosRow) _dtEchoExport.NewRow();

csRow.ItemArray = _DrCS.ItemArray;

ecRow.ItemArray = _dtEchosRes.Rows[0].ItemArray;

CS.AcceptChanges();

_dtEchoExport.AcceptChanges();

dsTemp.AcceptChanges();

_dtEchoExport.NewRow();

dsTemp.Tables.Add(CS);

dsTemp.Tables.Add(_dtEchoExport);

dsTemp.WriteXml(sFilePath,XmlWriteMode.IgnoreSchema);

return;


}


"Kevin Yu [MSFT]" <v-kevy@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:rKztiKECGHA.1240@xxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> You can use DataTable.Rows.Add method, since it has an overload which
> accepts and object array directly and argument. So, please check dsTemp to
> see if any rows have been imported properly.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>


.



Relevant Pages

  • Re: Multihomed DNS Server Mailserver Webserver Fileserver
    ... Kevin D. Goodknecht posted their thoughts, ... Newsgroup Etiquette: ... Please direct all replies to the newsgroup so all can benefit. ... Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP ...
    (microsoft.public.win2000.dns)
  • Re: Multihomed DNS Server Mailserver Webserver Fileserver
    ... Kevin D. Goodknecht posted their thoughts, ... Newsgroup Etiquette: ... Please direct all replies to the newsgroup so all can benefit. ... Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP ...
    (microsoft.public.windows.server.dns)
  • Re: This Foley thing....
    ... look for one word that serves as a common "container", ... Democrats then later said it was his fault! ... could deem confrontational was, in fact, REPLIES TO confrontational ... BK has claimed all along he is not Kevin. ...
    (rec.boats)
  • Re: IP address associated with the given NS record cannot be found --- Pri DNS + VPN server
    ... Joe made a post then I commented below ... > especially Kevin. ... >> Its less confusing if you work with it day to day. ... Please direct all replies ONLY to the Microsoft public newsgroups ...
    (microsoft.public.win2000.dns)
  • Re: OT-: On the way to Pluto.
    ... >> Thesaurus regarding kidding around. ... >> extra secret decoder ring that goes along with your version, ... BTW, Kevin, I'm getting your emails and have replied to each one. ... sure why you wouldn't be getting the replies. ...
    (rec.outdoors.rv-travel)