现有XML结构如下
<?xml version="1.0" standalone="yes" ?>
<neverModules>
  <autocomplete>
    <dataSource><![CDATA[
    [
    {text:'name', content:'never-online'},
    {text:'website', content:'never-online.net'},
    {text:'module', content:'autoComplete'},
    {text:'ajax demo', content:'neverModules'},
    {text:'neverModules', content:'cross-browser'}
    ]
  ]]></dataSource>
  </autocomplete>
</neverModules>
我想把数据库内容填入节点<datasource>中,即用数据库数据替换
{text:'name', content:'never-online'},
    {text:'website', content:'never-online.net'},
    {text:'module', content:'autoComplete'},
    {text:'ajax demo', content:'neverModules'},
    {text:'neverModules', content:'cross-browser'}
这些内容,其他不变,该如何写入呢?谢谢~
数据库结构text,content两个字段