Results 1 to 4 of 4

Thread: How Convert xml string to xml file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up How Convert xml string to xml file

    Hi

    I am using Asp.Net with vb.Net. I get a string with xml like <root><country>India</country></root>. I get like a string from one end. I need to convert this xml file. Is it possible?? If any idea tell me and give any websites for this solutions if u know.

    strXml=dsCheckData.getxml();

    The string is stored like a xml. I want to convert to xml file.

    I hope ur's reply asp....

    Thanks
    Failing to plan is Planning to fail

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: How Convert xml string to xml file

    So, what hapens when you save the xml string to a file ?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up Re: How Convert xml string to xml file

    Actually i get xml values and stored in string.

    Now i want to load this string in xml file that is

    in my application,

    strSelectTemplateDetails = "select strTemplateName,strPath,strTemplateId from tblPredefinedTemplates where strServiceType='" & strServiceType & "'"

    dsTemplateDetails = objClsContentDb.GetRecordSet(strSelectTemplateDetails)


    strXml = dsTemplateDetails.GetXml()

    in this string strXml stored like
    strXml= <Table> <strTemplateName>TepWap</strTemplateName><strPath>http://mob.i-waves.com/ford/</strPath> <strTemplateId>0999</strTemplateId> </Table>

    I want to convert this string to xml file

    Is it Possible????
    Failing to plan is Planning to fail

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How Convert xml string to xml file

    Use the dataset's WriteXml method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width