Salut à tous,
Voilà j'ai un problème avec une requête XPath.
J'ai un fichier XML de ce type : 
	
	| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 
 |  
<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0">
	<session-factory name="NHibernate.Test">
		<!--Propriétés pour la création d'une fabrique de session nhibernate-->
		<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
		<property name="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
		<!--property name="hibernate.connection.connection_string">Data Source=SERVEUR\SQLEXPRESS;Initial Catalog=MonCat;Integrated Security=True</property-->
		<property name="hibernate.connection.connection_string">server=MonServer;uid=monUID;pwd=MonPASS;database=MaTable</property>
		<property name="show_sql">true</property>
		<property name="hibernate.dialect">NHibernate.Dialect.MsSql2000Dialect</property>
		<property name="use_outer_join">true</property>
		<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
		<mapping assembly="maddl.demapping.dll"/>
	</session-factory>
</hibernate-configuration> | 
 Quand j'utilise la requête XPath 
	
	/hibernate-configuration/session-factory/property[@name='hibernate.connection.connection_string']
 dans XmlSpy, pas de PB, je récupère bien la valeur
Mais quand je l'utilise avec C#, je ne récupère rien !! node est null
	
	XmlNode node = oDoc.SelectSingleNode("/hibernate-configuration/session-factory/property[@name='hibernate.connection.connection_string']");
 SVP aidez moi, la je sèche !!
						
					
Partager