.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to Generate XML with C Data and other Nodes.

Posted By: Ali     Posted Date: November 27, 2013    Points:5   Category :C#

I need to do XML serialization on one object and return string. I did that successfully, which is displayed below...

<ISO> <Businesstype>021000</Businesstype> <AgencyId>P</AgencyId>........ </ISO>

But I need that to be generated as in the below format...

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/> <soapenv:Body>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>

That is I just need to generate XML with CData with other nodes like soap envelop. Because I need to pass this XML request to some other service. Please help me in this regard as soon as possible. Thanks.


No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend