Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Can anyone help me to find the missing values and repeated values such as id number from an XML file and replace the repeated values with the missing numbers

My code is shown below:

XML
<Model name="7049_PIPING.sat" version="v2.0" unit="m" count="12240" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Color id="256" r="255" g="255" b="255" /><Component id="0" colorId="256" layer="0"></Component><Component id="1" colorId="256" layer="0"></Component><Component id="4" colorId="256" layer="0"></Component><Component id="3" colorId="256" layer="0"></Component><Component id="4" colorId="256" layer="0"></Component><Component id="5" colorId="256" layer="0"></Component><Component id="6" colorId="256" layer="0"></Component><Component  id="8" colorId="256" layer="0"></Component><Component id="8" colorId="256" layer="0"></Component><Component id="9" colorId="256" layer="0"></Component><Component id="10" colorId="256" layer="0"></Component></Model>
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