I am trying to load an XML formatted string into my GUI using a TreeView control. However, the XML formated string is in proprietary layout.
The XML formatted string structure will look like this:
<Response>
<Data>
<Settings>
<Setting>
<SettingsXml>
<ScanJobs>
<ScanJobsData>
<Mailboxes>
<Name>[email protected]|DB1</Name>
<Value>true</Name>
</Mailboxes>
<Mailboxes>
<Name>[email protected]|DB1</Name>
<Value>true</Name>
</Mailboxes>
<Mailboxes>
<Name>[email protected]|DB2</Name>
<Value>true</Name>
</Mailboxes>
<Mailboxes>
<Name>[email protected]|DB2</Name>
<Value>true</Name>
</Mailboxes>
<Mailboxes>
<Name>[email protected]|DB3</Name>
<Value>true</Name>
</Mailboxes>
<Mailboxes>
<Name>[email protected]|DB3</Name>
<Value>true</Name>
</Mailboxes>
</ScanJobsData>
</ScanJobs>
</SettingsXml>
</Setting>
</Setting>
</Settings>
</Data>
</Response>
Where inside tags we have a and tags. tag represents the name of the mailbox appended with Database name to which that mail box belongs. For example- [email protected] is the name of the mailbox which is associated with Database having name as DB1. Now I am getting the above xml formatted data in a String not as a XML file.
I'd like the output to be structured in TreeView as follows :
+DB1
+DB2
+DB3
I've been searching the web for the past few hours, and none of the results have helped. Some have come close, but perhaps properties won't show up, or node's names won't display, etc.
I'm writing in c# in Visual Studio 2010. Thanks for the help!