-- 作者:hbruanyb
-- 发布时间:12/1/2008 11:47:00 AM
-- 为什么下段asp.net读不出item节点的内容
<asp:DataList ID="DataList1" runat="server" Width="750px" DataSourceID="XmlDataSource1" ShowFooter="False" ShowHeader="False" RepeatDirection="Horizontal" RepeatColumns="5"> <ItemTemplate> <asp:Label ID="nameLabel" runat="server" Text='<%# XPath("@name") %>'></asp:Label><asp:DropDownList ID="DropDownList1" runat="server" Width="96px" DataSource='<%# XPathSelect("item") %>' DataTextField="name" DataValueField="name"> </asp:DropDownList> <br /><br /> </ItemTemplate> </asp:DataList><asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/Products.xml" XPath="DocumentElement/mainitem[@name='循环系统']/secoitem[@name='浮肿']/linkword"></asp:XmlDataSource> <?xml version="1.0" standalone="yes"?> <DocumentElement> <mainitem name="呼吸系统"> <secoitem name="反复咽痛(疼痛)"> <linkword> </linkword> </secoitem> <secoitem name="咳嗽"> </secoitem> <secoitem name="咳痰"> </secoitem> <secoitem name="咯血"> </secoitem> <secoitem name="胸痛"> </secoitem> <secoitem name="鼻衄"> </secoitem> <secoitem name="流涕"> </secoitem> <secoitem name="发热"> </secoitem> </mainitem> <mainitem name="循环系统"> <secoitem name="心悸"> </secoitem> <secoitem name="呼吸困难"> </secoitem> <secoitem name="咯血"> </secoitem> <secoitem name="浮肿"> <linkword name=""> <item name="急起" /> <item name="缓慢发生" /> <item name="逐渐出现" /> <item name="反复发作" /> <item name="周期性出现" /> </linkword> <linkword name="浮肿,浮肿开始于"> <item name="双侧足部" /> <item name="左足部" /> <item name="右足部" /> <item name="双侧踝部" /> <item name="左踝部" /> <item name="右踝部" /> <item name="双下肢" /> <item name="左下肢" /> <item name="右下肢" /> <item name="外阴" /> <item name="骶部" /> <item name="臀部" /> <item name="前胸部" /> <item name="颈部" /> <item name="口唇" /> <item name="双侧眼睑" /> <item name="左眼睑" /> <item name="右眼睑" /> <item name="颜面" /> <item name="全身" /> </linkword> <linkword name=",后延及"> <item name="全身" /> <item name="颜面" /> <item name="双侧眼睑" /> <item name="左眼睑" /> <item name="右眼睑" /> <item name="口唇" /> <item name="颈部" /> <item name="前胸部" /> <item name="臀部" /> <item name="骶部" /> <item name="外阴" /> <item name="双下肢" /> <item name="左下肢" /> <item name="右下肢" /> <item name="双侧踝部" /> <item name="左踝部" /> <item name="右踝部" /> <item name="双侧足部" /> <item name="左足部" /> <item name="右足部" /> <item name="头皮" /> <item name="周围组织" /> </linkword> <linkword name=",为"> <item name="轻度" /> <item name="中度" /> <item name="重度" /> </linkword> <linkword name=""> <item name="凹陷性消肿" /> <item name="非凹陷性消肿" /> </linkword> <linkword name=","> <item name="清晨浮肿明显" /> <item name="下午浮肿明显" /> <item name="卧床后浮肿明显" /> <item name="月经前浮肿明显" /> <item name="月经后浮肿明显" /> <item name="呈连续性" /> </linkword> <linkword name=","> <item name="受凉后" /> <item name="劳累后" /> <item name="多饮后" /> <item name="服药后" /> </linkword> <linkword name="加重,"> <item name="直立体位后可缓解" /> <item name="夜间平卧后缓解" /> <item name="服药后可缓解" /> <item name="月经后自然消退" /> </linkword> <linkword name=",入院时浮肿"> <item name="加重。" /> <item name="无好转。" /> <item name="稍好转。" /> <item name="好转。" /> </linkword> </secoitem> <secoitem name="心性疼痛"> </secoitem> <secoitem name="高血压"> </secoitem> <secoitem name="晕厥"> </secoitem> <secoitem name="发热"> </secoitem> </mainitem> <mainitem name="消化系统"> <secoitem name="食欲减退(食欲异常)"> </secoitem> <secoitem name="返酸"> </secoitem> <secoitem name="嗳气"> </secoitem> <secoitem name="恶心"> </secoitem> <secoitem name="呕吐"> </secoitem> <secoitem name="腹胀"> </secoitem> <secoitem name="腹痛"> </secoitem> <secoitem name="便秘"> </secoitem> <secoitem name="腹泻"> </secoitem> <secoitem name="呕血"> </secoitem> <secoitem name="便血"> </secoitem> <secoitem name="黄疸"> </secoitem> <secoitem name="腹部包块(肿块)"> </secoitem> <secoitem name="呃逆"> </secoitem> <secoitem name="肛门排虫"> </secoitem> <secoitem name="吞咽异常"> </secoitem> <secoitem name="胃纳"> </secoitem> <secoitem name="粪内异物"> </secoitem> <secoitem name="浮肿"> </secoitem> <secoitem name="发热"> </secoitem> </mainitem> </DocumentElement>
|