See my portfolio for information on the Document Builder project that used the Query Tree component.
This is a sample query tree XML file which describes the hierarchy to be processed by the QueryTree classes. The XML file is read by the Root object's Load methods to create Node and Nodes objects in a corresponding hierarchy.
The Assembly, Namespace and Culture attributes of the Root element are loaded into the corresponding properties of the Root object. Assembly and Namespace are used to create the entity objects used by the Node objects. See the Store class.
The Name, KeyName and QueryFile attributes of the Node elements similarly are loaded into the Node objects. See Store.sql for a sample query file.>
The format of the XML files are defined by the query tree XML schema.
<?xml version="1.0" encoding="utf-8" ?>
<Root Assembly="NACS.DocBuilder.Directory.dll" Namespace="NACS.DocBuilder.Directory.Stores" Culture="en-US" xmlns="http://schemas.nacs.org/data/querytree">
<Node Name="Country" KeyName="ID" QueryFile="Directory\Stores\Country.sql">
<Nodes>
<Node Name="State" KeyName="ID" QueryFile="Directory\Stores\State.sql">
<Nodes>
<Node Name="City" KeyName="ID" QueryFile="Directory\Stores\City.sql">
<Nodes>
<Node Name="Institution" KeyName="ID" QueryFile="Directory\Stores\Institution.sql">
<Nodes>
<Node Name="Store" KeyName="ID" QueryFile="Directory\Stores\Store.sql">
<Nodes>
<Node Name="Employee" KeyName="ID" QueryFile="Directory\Stores\Employee.sql"></Node>
</Nodes>
</Node>
</Nodes>
</Node>
</Nodes>
</Node>
</Nodes>
</Node>
</Nodes>
</Node>
</Root>





