adding 2 XML strings together in XQuery

evilnoob

New Member
I'm trying to create an xml output of some items, which works perfect, though when i try to add a blabla tag in front of it fails.I think it's rather easy, but I'm not able to find a solution.the code i'm using:\[code\]let $data := content:sortContent(content:retrieveLastFM() union content:retrieveYoutube() union content:retrieveImgur() union content:retrieveFlickr() union content:retrieveNYTimes() union content:retrieveDiggTechnology() union content:retrieveDiggAmusement()),$doc := <description>Blablabla</description> <items> {$data} </items>return $doc\[/code\]The following does work:\[code\]$doc := <items>{$data}</items> \[/code\]Though I want a description in front of my list of items..I hope you understand what I'm trying to reach here ;)Thanks in advance for any help!
 
Back
Top