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:usercode>{CUST250}
<ns1:rolecode>{SUPERUSER}
<ns1:pretcode>
<ns1:userid>
<ns1:roleid>
<ns1:userroleid>
<ns1:branchcode>
<ns1:preterr>
<ns1:polbranchcode>
<ns1:productname>{Private Car}
<ns1:policyholdercode>{PO00000188}
<ns1:eventdate>{07/10/2013}
<ns1:netpremium>
<ns1:properties>
<ns1:value>Y
<ns1:name>Fire explosion self ignition or lightning peril required

<ns1:properties>
<ns1:value>Y
<ns1:name>Burglary housebreaking or theft peril required

<ns1:properties>
<ns1:value>Y
<ns1:name>Riot and strike peril required

<ns1:properties>


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,
Rahul.
Posted

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