The structure of my XML document is the following:
<tr>
<seg>
<source>source_text</source>
<dest>dest_text</dest>
</seg>
...
<seg>
<source>source_text</source>
</seg>
</tr>
Note that the dest element is not always present. I want to scan the file with PHP and insert a dest element (with some text) each time it's not present in a seg node.
Any help would be very appreciated. Patrick