Click here to Skip to main content
15,886,799 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 8:03
mveGerry Schmitz12-Feb-18 8:03 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 8:43
Travis Jacobson12-Feb-18 8:43 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 9:17
J. Calhoun12-Feb-18 9:17 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 10:29
Travis Jacobson12-Feb-18 10:29 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 10:44
J. Calhoun12-Feb-18 10:44 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 10:55
Travis Jacobson12-Feb-18 10:55 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 11:06
J. Calhoun12-Feb-18 11:06 
QuestionRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 11:46
Travis Jacobson12-Feb-18 11:46 
this is working really well and displays the results in a message box. The only issue is that when the message boxes are done being displayed the application seems to freeze up and then finally errors out. i think it is because the loop is still running.

One question... is there a way to change the code i have below to include the name= tag in the filter? If i can do that i might not need the loop and can call the nodes directly. example...;
xmlvalue = node.SelectSingleNode("/setting name="AppXml"/value").InnerText;


private void LoadXMLData_Click(object sender, EventArgs e)
        {
            XmlDocument xdoc = new XmlDocument();
            xdoc.Load("C:\\user.config");
            XmlNodeList nodes = xdoc.DocumentElement.SelectNodes("/configuration/userSettings/nextnode/setting");
            string xmlvalue = "";
            foreach (XmlNode node in nodes)
            {
                if (xmlvalue != null)
                {
                    xmlvalue = node.SelectSingleNode("value").InnerText;
                    string xmlvalue2 = System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String(xmlvalue));
                    MessageBox.Show(xmlvalue2);
                }
            }
        }


modified 12-Feb-18 19:05pm.

GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 11:48
Travis Jacobson12-Feb-18 11:48 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 8:43
Travis Jacobson12-Feb-18 8:43 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Dave Kreskowiak12-Feb-18 11:43
mveDave Kreskowiak12-Feb-18 11:43 
QuestionUpdating textbox from derived class c# wpf Pin
Member 1357136412-Feb-18 3:44
Member 1357136412-Feb-18 3:44 
AnswerRe: Updating textbox from derived class c# wpf Pin
Richard MacCutchan12-Feb-18 6:10
mveRichard MacCutchan12-Feb-18 6:10 
AnswerRe: Updating textbox from derived class c# wpf Pin
Gerry Schmitz12-Feb-18 6:21
mveGerry Schmitz12-Feb-18 6:21 
GeneralRe: Updating textbox from derived class c# wpf Pin
Member 1357136412-Feb-18 20:54
Member 1357136412-Feb-18 20:54 
GeneralRe: Updating textbox from derived class c# wpf Pin
Gerry Schmitz13-Feb-18 5:10
mveGerry Schmitz13-Feb-18 5:10 
GeneralRe: Updating textbox from derived class c# wpf Pin
Member 1357136414-Feb-18 9:00
Member 1357136414-Feb-18 9:00 
GeneralRe: Updating textbox from derived class c# wpf Pin
Gerry Schmitz14-Feb-18 10:26
mveGerry Schmitz14-Feb-18 10:26 
QuestionPls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 3:02
Member 1367430012-Feb-18 3:02 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
OriginalGriff12-Feb-18 5:05
mveOriginalGriff12-Feb-18 5:05 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Gerry Schmitz12-Feb-18 6:40
mveGerry Schmitz12-Feb-18 6:40 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 6:44
Member 1367430012-Feb-18 6:44 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Gerry Schmitz12-Feb-18 6:51
mveGerry Schmitz12-Feb-18 6:51 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 6:51
Member 1367430012-Feb-18 6:51 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Gerry Schmitz12-Feb-18 6:59
mveGerry Schmitz12-Feb-18 6:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.