Click here to Skip to main content
15,883,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I was working on C# windows form and wanted to pass the form input text to other .cs file, is it possible to convert string into XMLNode ?

like string text =  "My Name";

and convert it into XMLNode just to save it in xml file.


What I have tried:

I have tried every possible solution came into my little brain. i don't want to loose hope. If anyone has ever experienced this problem please share your precious solutions..
Posted
Updated 17-Oct-17 7:30am
Comments
Maciej Los 16-Oct-17 14:56pm    
We can't read in your mind or direct from your screen. Please, provide more details, for example: what is expected output?
Karthik_Mahalingam 16-Oct-17 23:32pm    
what is your input and the expected output?

 
Share this answer
 
Comments
Hamza Shahid 16-Oct-17 12:46pm    
Can you provide a code fragment of converting string to xmlnode using XMLWriter class?
Richard MacCutchan 16-Oct-17 12:48pm    
If you bothered to go and read the page you could find out for yourself.
If you just want to pass data between classes, there's no need to save it to a file.

For example, see OriginalGriff's series of tips on how to pass data between two forms:
Transferring information between two forms, Part 1: Parent to Child[^]
Transferring information between two forms, Part 2: Child to Parent[^]
Transferring information between two forms, Part 3: Child to Child[^]

If that doesn't help, try explaining the problem that you're actually trying to solve, rather than the problem with your proposed solution to the real problem! :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900