2011-11-14 38 views
0
<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來訪問這個xml文件。 其實我想,當我進入特定的效果id.So,我會得到屬性的效果名稱的值當我給效果ID作爲輸入值 我該怎麼辦用vb.net如何訪問vb.net中xml文件的屬性

回答