my file is like:
How i can update my xml file(existing) data using c#
Code:
<?xml version="1.0" encoding="utf-8"?> <CarList xmlns="http://tempuri.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tempuri.org carSchema.xsd" > <cars car_Id="1"> <car_make>MARUTI</car_make> <car_model>WAGONR</car_model> <car_year>2000</car_year> <car_price>400000</car_price> <reg_num>MA123</reg_num> <prev_owner>SAMEER</prev_owner> </cars> <cars car_Id="2" > <car_make>MARUTI</car_make> <car_model>WAGONR</car_model> <car_year>2000</car_year> <car_price>400000</car_price> <reg_num>MA123</reg_num> <prev_owner>SAMEER</prev_owner> </cars> </CarList>
Comment