Click here to Skip to main content
15,888,984 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 6:35
mveGerry Schmitz12-Feb-18 6:35 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 7:27
Travis Jacobson12-Feb-18 7:27 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 7:36
mveGerry Schmitz12-Feb-18 7:36 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 7:57
Travis Jacobson12-Feb-18 7:57 
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 
that sounds good. I have made that modification.

Currently here is what i have for the methods;

My question from this point is how would i say what <value> node i would like to retrieve from the xml and where it returns that data.

Im looking to input the file name and be able to retrieve each of the individual <value> node values.

public void XMLStrings(string filename)
        {
            // Create an instance of the XmlSerializer specifying type and namespace.
            XmlSerializer serializer = new
            XmlSerializer(typeof(XMLClass));

            // A Stream is needed to read the XML document.
            XMLClass i = new XMLClass();
            using (StreamReader stream = new StreamReader(filename))
                i = (XMLClass)serializer.Deserialize(stream);                            
        }
<pre>private void loadXMLData_Click(object sender, EventArgs e) =>
            // Read XML file
            XMLStrings(@"C:\User.config");

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 
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 

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.