Adding a comment to a XML document: WriteXML

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

    Adding a comment to a XML document: WriteXML

    Hi, how can I write a comment to a XML document when I am generating the XML
    document via the DataSets WriteXML method?

    Thanks in advance
    Mark


  • Cor Ligthert [MVP]

    #2
    Re: Adding a comment to a XML document: WriteXML

    Mark,

    There is a difference between a XML file and an XML document.
    A dataset can be serialized in an XML file, therefore is it not yet a
    document.

    The same as than an XML document is not direct a dataset.

    I hope this helps,

    Cor

    "Mark" <dont@spam.me > schreef in bericht
    news:uhVT1AyvFH A.2956@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi, how can I write a comment to a XML document when I am generating the
    > XML
    > document via the DataSets WriteXML method?
    >
    > Thanks in advance
    > Mark
    >
    >[/color]


    Comment

    • Mark

      #3
      Re: Adding a comment to a XML document: WriteXML

      Hi Cor, thanks for that. I am aware of this difference but I was just
      wondering if it was possible to insert a comment into a DataSet via an add
      row method in one of the underlying DataRows..

      Cheers
      Mark
      "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
      news:uo2Vlt0vFH A.908@tk2msftng p13.phx.gbl...[color=blue]
      > Mark,
      >
      > There is a difference between a XML file and an XML document.
      > A dataset can be serialized in an XML file, therefore is it not yet a
      > document.
      >
      > The same as than an XML document is not direct a dataset.
      >
      > I hope this helps,
      >
      > Cor
      >
      > "Mark" <dont@spam.me > schreef in bericht
      > news:uhVT1AyvFH A.2956@TK2MSFTN GP09.phx.gbl...[color=green]
      > > Hi, how can I write a comment to a XML document when I am generating the
      > > XML
      > > document via the DataSets WriteXML method?
      > >
      > > Thanks in advance
      > > Mark
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Adding a comment to a XML document: WriteXML

        Mark,
        [color=blue]
        > Hi Cor, thanks for that. I am aware of this difference but I was just
        > wondering if it was possible to insert a comment into a DataSet via an add
        > row method in one of the underlying DataRows..
        >[/color]
        Probably not as you intent, a datarow has the format of the Columns
        description of a datatable.

        Cor


        Comment

        Working...