DataSet.GetXml() Question

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

    DataSet.GetXml() Question

    Hi,
    I am writing out the DataSet.GetXml( ) to a file as below:

    Response.AddHea der ("Content-disposition", @"attachment ;
    filename=Employ ee.xml");
    Response.Conten tType = "applicatio n/ms-tnef";
    Response.Write( dsEmployee().Ge tXml());
    Response.End();

    I get the XML but the problem I am having is: in a few places where I have
    "Double Quotes", it is replaced with """ . How can I preserver the "Double
    Quotes" in the XML I download (instead of me manually going through entire
    XML and replacing ...) ?? TIA.
  • Clamps

    #2
    Re: DataSet.GetXml( ) Question

    You said you are writing the xml to a file. Windows app or asp.net?



    "exBK" <exBK@discussio ns.microsoft.co m> wrote in message
    news:447AD682-2B85-4145-9A92-7E19EDE52D2A@mi crosoft.com...
    | Hi,
    | I am writing out the DataSet.GetXml( ) to a file as below:
    |
    | Response.AddHea der ("Content-disposition", @"attachment ;
    | filename=Employ ee.xml");
    | Response.Conten tType = "applicatio n/ms-tnef";
    | Response.Write( dsEmployee().Ge tXml());
    | Response.End();
    |
    | I get the XML but the problem I am having is: in a few places where I have
    | "Double Quotes", it is replaced with """ . How can I preserver the "Double
    | Quotes" in the XML I download (instead of me manually going through entire
    | XML and replacing ...) ?? TIA.

    Comment

    • exBK

      #3
      Re: DataSet.GetXml( ) Question

      Its written in asp.net. Thanks.

      "Clamps" wrote:
      [color=blue]
      > You said you are writing the xml to a file. Windows app or asp.net?
      >
      >
      >
      > "exBK" <exBK@discussio ns.microsoft.co m> wrote in message
      > news:447AD682-2B85-4145-9A92-7E19EDE52D2A@mi crosoft.com...
      > | Hi,
      > | I am writing out the DataSet.GetXml( ) to a file as below:
      > |
      > | Response.AddHea der ("Content-disposition", @"attachment ;
      > | filename=Employ ee.xml");
      > | Response.Conten tType = "applicatio n/ms-tnef";
      > | Response.Write( dsEmployee().Ge tXml());
      > | Response.End();
      > |
      > | I get the XML but the problem I am having is: in a few places where I have
      > | "Double Quotes", it is replaced with """ . How can I preserver the "Double
      > | Quotes" in the XML I download (instead of me manually going through entire
      > | XML and replacing ...) ?? TIA.
      >
      >[/color]

      Comment

      Working...