Displaying data in xml format from SqlDB

xml India
  • 14 years ago

    Hi All,

    I Have a problem with displaying data in xml format. I have a table name "Service" in SqlDB with "ServiceID" , "ServiceName","ServiceDesc","ServiceAva" these fields. From the client application i am passing "ServiceID" as input to the Webservice. The webservice have to display data to the client in the xml format. i don't want to use the xml mode in the sql query. The output should be like this.

    <Service>

    <ServiceID DATA_TYPE="int">5</ServiceID>

    <ServiceName DATA_TYPE="nvarchar">5</ServiceName>

    <ServiceDesc DATA_TYPE="nvarchar">5</ServiceDesc>

    <ServiceAva DATA_TYPE="int">50</ServiceAva>

    </Service>

     

    Can you all please help me.

    Regards

    Raju

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth