从数据库生成xml节点

问题描述:

有人帮助我!
如何使用数据库使用xml创建动态菜单.

some one help me !
how to create a dynamic menu with xml using data base . this is need to maintain the user roles in the project.

使用此查询

从[Tablename]中选择*作为xml路径("Any"),root("root")

试试这个.它可能对你有帮助.
:cool:
use this query

Select * from [Tablename] for xml path(''Any''),root(''root'')

try this .it may help u.
:cool: