日期:2014-05-19  浏览次数:20439 次

谁能帮帮我啊。。XML怎么会这样呢
<threelevels   menuname= "行业资讯 "   linkurl= "manage_pubinfo.aspx?type=infromation&typeid=1&typename= '行业资讯 ' "> </threelevels>
                                                <threelevels   menuname= "市场动态 "   linkurl= "manage_pubinfo.aspx?type=infromation&typeid=2&typename= '市场动态 ' "> </threelevels>
                                                <threelevels   menuname= "企业报道 "   linkurl= "manage_pubinfo.aspx?type=infromation&typeid=3&typename= '企业报道 ' "> </threelevels>
                                                <threelevels   menuname= "政策法规 "   linkurl= "manage_pubinfo.aspx?type=infromation&typeid=4&typename= '政策法规 ' "> </threelevels>
                                                <threelevels   menuname= "展览展会 "   linkurl= "manage_pubinfo.aspx?type=infromation&typeid=5&typename= '展览展会 ' "> </threelevels>


这是我写得一段XML,使用TREEVIEW控件作为树,,, "linkurl= "     作为点机的链接页面,通过他传递参数信息。,。郁闷得是提示我“&”这个符号应改换为 "; ",郁闷这事为啥??

------解决方案--------------------
xml里&是预定义实体...所以应该会错....把&改成&amp就应该可以了
------解决方案--------------------
需要转义就像html一样.
------解决方案--------------------
应该换成&amp; 另外要加个根元素.
------解决方案--------------------
帮顶