I have an xml like this:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<reflection-optimizer use="false"/>
<session-factory>
<property name="XX">XX</property>
<property name="XX">XX</property>
</session-factory>
</hibernate-configuration>
I'm trying to select the property nodes using SelectNodes, and I've tried the following:
root.SelectNodes("property");
root.SelectNodes("//property");
root.SelectNodes("/session-factory/property");
root.SelectNodes("descendant::property");
root.LastChild.SelectNodes("child::property");
But all of them returns 0 nodes. Can anyone help me? Thanks.