Android Tutorial How to change the XML element in file and save it, using XOM library

I learned to read XML file, thank you all! Now I need to learn how to change XML elements and save it. file. For example is XML file

<?xml version="1.0" encoding="UTF-8"?>
<group>
<object>
<ID>0006</ID>
<name>Скорость / Velosity</name>
<loc_rating>4</loc_rating>
<rating>23</rating>
<time>23/02/2016 14:45:34</time>
<phone>
<time>11/11/2016 14:45:34</time>
<number>+7893344528</number>
<call>5</call>
</phone>
<phone>
<time>01/01/2011 14:45:34</time>
<number>+99999999</number>
<call>2</call>
</phone>

<phone>
<time>23/03/2016 14:45:34</time>
<number>+78903454428</number>
<call>4</call>
</phone>
</object>
</group>

I want to find "red" element with "number" +99999999. After i want correct inside <phone> element "time" and "call" on any value.
 
Top