Is it possible to define two "SelectSingleNode" statements while narrowing down a search for a specific XML value?
My XML structure is as follows:
<beans>
<bean id="MenuGet">
<property name="name">
<property name="MapOverride">
<map>
<entry key="node.infoblock" value="k4jk2jb54B$T45bt2j5ktb3B%$">
</map>
</property>
</bean>
</beans>
<beans>
<bean id="SystemGet">
<property name="name">
<property name="MapOverride">
<map>
<entry key="node.infoblock" value="b34t34bhj54b%B#Y$%Bn45ht5h">
</map>
</property>
</bean>
</beans>
The statement I'm using to call the value I'm trying to pull from the first "beans" tag is below but I'm not sure if it's right or would work:
$statement=$XMLFile.beans.bean.SelectSingleNode("id[contains(@key="Menu")]").property[1].map.SelectSingleNode("entry[@key='node.infoblock']").value