I have this Xml document and I cannot find in my book anywhere about how to simply read a certain nodes information. Can someone help?
All I want to do is extract the settings data from the tags. Please give an example of how to get the TitleColor tags color and put in in Color variable.
I tried this but it does not show anything in the message box:
FileStream F=new FileStream(Org+"\\Settings\\Settings.xml",FileMode.Open);
XmlTextReader reader=new XmlTextReader("Appearance/Title", F);
string g=reader.ReadString();
MessageBox.Show(g);
Also, please a bried explanation of how to write to that same tag.
Code:
<Appearance>
<Title>AndrewLog</Title>
<TitleFont></TitleFont>
<TitleColor>blue</TitleColor>
<LogBoxColor></LogBoxColor>
<LogBoxTextColor></LogBoxTextColor>
</Appearance>
<Functuality>
<SmallRTBResize>136</SmallRTBResize>
<LargeRTBResize>300</LargeRTBResize>
</Functuality>
I tried this but it does not show anything in the message box:
FileStream F=new FileStream(Org+"\\Settings\\Settings.xml",FileMode.Open);
XmlTextReader reader=new XmlTextReader("Appearance/Title", F);
string g=reader.ReadString();
MessageBox.Show(g);
Also, please a bried explanation of how to write to that same tag.
Last edited by a moderator: