Updating xml file using c
I'm sure to XML mystics this is wise and wonderful but it really confused me, and I thought it might confuse others.Because the encoding of my XML file is UTF-8 and the encoding of my web page is iso-8859-1 I was getting strange characters such as â€™ instead of a right single quote.
This file supports formatted values so you can add the names of the public properties attached to your edit controls in it.The solution to this turned out to be hard to find, but really easy to implement. the iconv() function you can convert from one encodign to another, the TRANSLIT option seems to work best for what I needed.Here's my example: Be careful if you are using simplexml data directly to feed your My SQL database using MYSQLi and bind parameters.For example, you wish to store the password and username in your XML file.
The edit controls have the PASSWORD_PROP and USERNAME_PROP public properties attached to them.
NET applications which use the “web.config“ file to store this information.