首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在vb.net中访问xml文件的属性

如何在vb.net中访问xml文件的属性
EN

Stack Overflow用户
提问于 2011-11-14 17:10:20
回答 1查看 437关注 0票数 0
代码语言:javascript
运行
复制
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"           
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft- 
com:rowset" xmlns:z="#RowsetSchema">
- <s:Schema id="RowsetSchema">
- <s:ElementType name="row" content="eltOnly">
- <s:AttributeType name="EffectId" rs:number="1" rs:nullable="true" rs:maydefer="true" 
rs:writeunknown="true">
<s:datatype dt:type="int" dt:maxLength="4" rs:precision="10" rs:fixedlength="true" /> 
</s:AttributeType>
- <s:AttributeType name="EffectName" rs:number="2" rs:nullable="true"   
rs:maydefer="true" rs:writeunknown="true">
<s:datatype dt:type="string" dt:maxLength="255" /> 
</s:AttributeType>
<s:extends type="rs:rowbase" /> 
</s:ElementType>
</s:Schema>
- <rs:data>
<z:row EffectId="0" EffectName="No Effect or Stop" /> 
<z:row EffectId="1" EffectName="Flash" /> 
<z:row EffectId="2" EffectName="Reversal AND Flash" /> 
<z:row EffectId="3" EffectName="Laser" /> 
<z:row EffectId="4" EffectName="scroling" /> 
<z:row EffectId="23" EffectName="LONG_SENTENCE_scroling" /> 
<z:row EffectId="5" EffectName="To the left" /> 
<z:row EffectId="6" EffectName="To the Right" /> 
<z:row EffectId="7" EffectName="To the Up Side" /> 
<z:row EffectId="8" EffectName="To the Down Side" /> 
<z:row EffectId="9" EffectName="Scale Up" /> 
<z:row EffectId="10" EffectName="Up -- Middle - Down" /> 
<z:row EffectId="11" EffectName="Twist Left and Right" /> 
<z:row EffectId="12" EffectName="Module horizontal Blind" /> 
<z:row EffectId="13" EffectName="Move to Center" /> 
<z:row EffectId="14" EffectName="Left - Middle -- Right" /> 
<z:row EffectId="15" EffectName="Up - Middle -- Down" /> 
<z:row EffectId="16" EffectName="Expand to Left and Right" /> 
<z:row EffectId="17" EffectName="Expand to Up and Down" /> 
<z:row EffectId="18" EffectName="Laser Down" /> 
<z:row EffectId="19" EffectName="Blind" /> 
<z:row EffectId="20" EffectName="Left - Middle -- Right" /> 
<z:row EffectId="21" EffectName="Twist Up and Down" /> 
<z:row EffectId="22" EffectName="Module Vertical Blind" /> 
</rs:data>
</xml>

这是我的Effect.xml文件,我正在使用vb.net来访问这个文件。实际上我想在输入特效id.So时访问特效名称,输入特效id作为输入值时,会得到特效名称的属性值,如何使用vb.net

EN

回答 1

Stack Overflow用户

发布于 2011-11-14 17:18:53

System.xml名称空间提供了许多功能。根据您的需要,我更倾向于将XQuery作为首选。参考:http://msdn.microsoft.com/en-us/library/system.xml.aspx

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8119327

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档