Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting values from an XML File
Message
From
20/10/2006 12:30:56
 
 
To
20/10/2006 08:34:08
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01162072
Message ID:
01163685
Views:
12
>I've got one more question, which I hope you may be able to answer. One of the strings I need to change in the XML file is stored like this:
>
>
><configuration>
>	<connectionStrings>
><add name="MistRep.My.MySettings.mist2006ConnectionString" connectionString="Data Source=(local);Initial Catalog=mist2006;Integrated Security=True" providerName="System.Data.SqlClient"/>
></connectionStrings>
></configuration>
>
>
>Is there a way for me to change the "Data Source=(local);Initial Catalog=mist2006;Integrated Security=True" providerName="System.Data.SqlClient" to something else?

Try:
oXML.selectSingleNode("//connectionStrings/add").attributes.getNamedItem("connectionString").text = "New connectionstring info"
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform