I am building a report viewer. The viewer will contain a tree control that displays to the user all possible reports to choose from. I'm using a tree control because the reports could be grouped several levels deep. The tree could like this:
- North America
+ North Territory
+ South Territory
+ West Territory
- Units Manufactured
- Units Shipped
+ East Territory
+ South America
At the lowest level of each group (e.g., 'Units Manufactured' and 'Units Shipped' for North America, West Territory), I want to store information about the report that will be used to render the report (e.g., information required to display the North America, West Territory, Units Manufactured report).
For example, I would want to include the name of the report (string), connection information (string) and available sites (single string). What would be the best way to represent this in XML? I'm not particularly fluent in XML, so I could use some help. One further requirement is that there really is no limit as to how many levels deep the grouping could go, but I expect it would never be more than three or four. I'll then use the XML to build my tree control dynamically at runtime, and then use the information stored at each lowest level to display the report when it is selected by the user.
Thanks very much