Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
<ns1:savequote_genericelement xmlns:ns1="#unknown">
<ns1:productname>{Private Car}
<ns1:name>Fire explosion self ignition or lightning peril required

<ns1:name>Burglary housebreaking or theft peril required

<ns1:name>Riot and strike peril required


In front end i am call the XMl File That will be look Like

string xmlContent = CreateXmlFile(1);
xmlContent = xmlContent.Replace("{userCode}", "CUST250");
xmlContent = xmlContent.Replace("{rolecode}", "SUPERUSER");
xmlContent = xmlContent.Replace("{PRetCode}", "0");

xmlContent = xmlContent.Replace("{productName}", "Private Car");
xmlContent = xmlContent.Replace("{policyHoldercode}", "PO00000188");
xmlContent = xmlContent.Replace("{eventDate}", "07/10/2013");

this is how i am replacig for Sub Tags how should Relace them Could ANy one Suggest Me with an Example

Thanks And Regards,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900