Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. C# .NET web services: Manipulating XML

C# .NET web services: Manipulating XML

Scheduled Pinned Locked Moved XML / XSL
csharptutorialdatabasewcfxml
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tiwari_neha
    wrote on last edited by
    #1

    Hi, I am developing a web service in C#.Net1.1 and a new bee to .NET. I have developed a web method to retrieve the data from database and I want to sent the response in the form of XML.I want to manipulate the dataset to get the desired XML.But I dont know how to do that? Can somebody help me in formatting the XML. Also, once I will format the XML, what return type I should use in web method to get XML file as output. Thanks in advance. Example: Current XML: - P750

    - 7501430 - 448.9300 Required XML: xml version="1.0" ?> 123445

    B N 2 Replies Last reply
    0
    • T tiwari_neha

      Hi, I am developing a web service in C#.Net1.1 and a new bee to .NET. I have developed a web method to retrieve the data from database and I want to sent the response in the form of XML.I want to manipulate the dataset to get the desired XML.But I dont know how to do that? Can somebody help me in formatting the XML. Also, once I will format the XML, what return type I should use in web method to get XML file as output. Thanks in advance. Example: Current XML: - P750

      - 7501430 - 448.9300 Required XML: xml version="1.0" ?> 123445

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      In which format you want the XML. You need to first learn basic XML.You'll get the answer Check the link [^]">

      Cheers!! Brij

      T 1 Reply Last reply
      0
      • B Brij

        In which format you want the XML. You need to first learn basic XML.You'll get the answer Check the link [^]">

        Cheers!! Brij

        T Offline
        T Offline
        tiwari_neha
        wrote on last edited by
        #3

        Thanks for repling. I know basics of XML. In my post earlier Tags didnt come. I want to cutomize the tags according to the requirement rather than getting the Tags for the default database.

        B 1 Reply Last reply
        0
        • T tiwari_neha

          Thanks for repling. I know basics of XML. In my post earlier Tags didnt come. I want to cutomize the tags according to the requirement rather than getting the Tags for the default database.

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          You can change the format of XML from one to another using XSLT for that you need XSLT style sheet. Check the link Click[^]">

          Cheers!! Brij

          1 Reply Last reply
          0
          • T tiwari_neha

            Hi, I am developing a web service in C#.Net1.1 and a new bee to .NET. I have developed a web method to retrieve the data from database and I want to sent the response in the form of XML.I want to manipulate the dataset to get the desired XML.But I dont know how to do that? Can somebody help me in formatting the XML. Also, once I will format the XML, what return type I should use in web method to get XML file as output. Thanks in advance. Example: Current XML: - P750

            - 7501430 - 448.9300 Required XML: xml version="1.0" ?> 123445

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            What database are you using? If its SQL Server you can use the FORXML clause to format the resultset. Also, why use .NET 1.1? It is very outdated, 2.0 is the minimum you should be working with.


            only two letters away from being an asset

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups