i have an arraylist which contains title and fullname in the following format
First i am splitting the contents with |.I will get the title and fullnames. Then i split fullnames with space to get firstname and familyname.
Now i have 3 strings
The next task is i have check the text contents of existed xml with the above strings firstname and familyname.Here is the existed xml
if the
firstname
and
familyname
contets matches with the text content of above xml elements
<firstname>,<familyname>
then
i have to create on element named
<title>
and append the corresponding title from my list.
I have tried with the following code,
How to get the children and check for text contents?