Help with XML Structure -


I am creating a report viewer. The viewer will have a tree control that displays all possible reports to choose the user. I am using a tree control because the report can be deeply dense in many levels, the tree can be like this:

- North America + northern region + south region + west area - Build units - Units Ship + Eastern Area + South America

At the lowest level of each group (for example, 'building units' and 'North America, for the west region' Haj '), I want to store information about the report that will be used to submit the report (for example, the information required to display the North American, West Territory, created reports of units).

For example, I would like to include the name of the report (string), connection information (string) and available site (single string). What would be the best way to represent this in XML? I am not particularly fluent in XML, so I can use some help. Another requirement is that there really is no limit to how deep the group can be, but I hope it is more than three or four Will never. I will then use the XML to make my tree control dynamic, and then use the information stored at every lowest level to display that report when the user is selected.

Thank you very much

Use a simple structure like this, where tree elements have unlimited branches, in which Others may include branches or leaves (which are the end points) in each.

  & lt; Tree & gt; & Lt; Branch name = "North America" ​​& gt; & Lt; Branch name = "northern region" & gt; ... & lt; / Branch & gt; & Lt; Branch name = "south area" & gt; ... & lt; / Branch & gt; & Lt; Branch name = "west zone" & gt; & Lt; Leaf Name = "Generated Units" / & gt; & Lt; Pan name = "Sent to units" /> & Lt; / Branch & gt; & Lt; Branch name = "east zone" & gt; ... & lt; / Branch & gt; & Lt; Branch name = "South America" ​​& gt; ... & lt; / Branch & gt; & Lt; / Tree & gt;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -