I have two XML files:
The first one contains the following tags:
<book id=1>
<chpater id=1>
<sentence id = 1>
blaa blaa blaa blaa
</sentence>
<sentence id = 2>
blaa blaa blaa blaa blaa blaa blaa blaa
</sentence>
</chapter>
<chpater id=2>
<sentence id = 1>
blaa blaa blaa blaa
</sentence>
</chapter>
</book>
<book id =2>
<chapter id=1>
<sentence id=1>
blaa blaa blaa
</sentece>
</chpater>
</book>
The second file is a multivalued tag of the chapter tag as the following:
<book id=1>
<chapter id=1, name= introduction, length=short>
<book id=1>
<chapter id=2, name= animals, length=long>
for each book and chapter in that book a new tag has been made. How to replace the tag in the first file with the multi value tag . Remember the chapter id is not unique. but the book id is unique.