This is my XML file i want to add new "proj" element and a attribute to that bases on the condition ,that project name is already there or not:
<?xml version="1.0" encoding="utf-8"?>
<projects>
<proj name="project1">
<file_type Type="internalmeeting">"path1"</file_type>
</proj>
<proj name="project2">
<file_type Type="externalmeeting">"path2"</file_type>
</proj>
</projects>
i m able to add the element but it adding each time i click "save" button.