【发布时间】:2011-02-10 22:19:39
【问题描述】:
我需要在 drupal 7 中创建自定义 XML 提要。提要可以做到这一点吗? 如果是这样,如何以及... 我在哪里可以设置 XML 的“根节点”? 另外,我正在向此 XML 添加字段,但这些字段需要包装在其他元素中,我该如何实现呢?例如:
<?xml version="1.0" encoding="UTF-8"?>
<xmlns="..."xmlns:xsi="..."xsi:schemaLocation="..."> this is the 'root node' i need to add
<calendar> these are elements to add around the field
<timestamps>
<timestamp>
<date>this is the date_field/date>
<.timestamp>
</timestamps>
</calendar>
所以要恢复:我只有字段“日期”和我需要添加的所有内容(日历、时间戳、时间戳)。几乎所有需要的字段都需要这样做。
这一切的意思是根据自定义的xml-standard导出自定义的xml。我还没有找到能够做到这一点的模块,所以请指教。
请指教
【问题讨论】: