0
string text = @"<xml>
        <trans>2804</trans>
        <saletype>Quick-Service</saletype>
        <listitem>
        <item><type>1</type><qty>1</qty><desc>Description1 1 Printed Description1><1,16,1,5160,0,0,0,0,5160,52000</desc><cost> 52,000</cost></item>
        <item><type>1</type><qty>2</qty><desc>Description2 2 Printed Description2><1,16,1,5161,0,0,0,0,5161,52000</desc><cost> 52,000</cost></item>
        </listitem>
        </xml>";
string result = @"<xml>
        <trans>2804</trans>
        <saletype>Quick-Service</saletype>
        <listitem>
        <item><type>1</type><qty>1</qty><desc>Description1 Printed Description1</desc><cost> 52,000</cost></item>
        <item><type>1</type><qty>2</qty><desc>Description2 Printed Description2</desc><cost> 52,000</cost></item>
        </listitem>
        </xml>";

As the above request I want to delete a string in the desc tag. Appreciate your help.

0 Answers0