Plarnerilieds
New Member
\[code\]$xml = <<<xml<?xml version="1.0"?><house> <room id="10"> <text>Lorem Ipsum is simply <sref ref="2012AB58"/>dummy text of the</text> </room> <room id="20"> <text>Lorem Ipsum is simply <sref ref="2012AB60"/>, dummy text <sref ref="2012AB65"/>of the</text> </room></house>xml;\[/code\]How do I get the following result?1 -> Lorem Ipsum is simply (2012AB58) dummy text of the2 -> Lorem Ipsum is simply (2012AB60), dummy text (2012AB65) of the