Bonjour
J'essaye de lire un fichier du genre
<?xml version="1.0" encoding="iso-8859-15"?>
<configuration>
<NARVAL>
<install1>
<add key="AppliMaj1">d:\sqlmaj\narval.zip</add>
<install1/>
</NARVAL>
</configuration>
Par la ligne de code
stoto = Node.InnerText.ToString();
ou
<?xml version="1.0" encoding="iso-8859-15"?>
<configuration>
<NARVAL>
<install1>
<add key="AppliMaj1" value="c:\testservice\narval" />
<install1/>
</NARVAL>
</configuration>
par la ligne de code
node.Attributes.GetNamedItem("value").Value;
le parser est celui de visual studio 2005
Mon problème est que dans les deux cas il me retourne
d:\\sqlmaj\\narval.zip ou c:\\testservice\\narval
il ajoute un "\" devant chaque "\", il y a-t-il un moyen d'empeche cela.
Merci pour vos indices
Yann
Partager