Click here to Skip to main content
15,898,134 members
Articles / Web Development / HTML

XTree

Rate me:
Please Sign up or sign in to vote.
4.41/5 (19 votes)
7 Jan 20066 min read 91.4K   771   78  
A template driven tree
<?xml version="1.0" encoding="utf-8"?>
  <Node Name="Solution" Text="Solution '$Name:  $'" IsReadOnly="true" IsRequired="true" IconFilename="solution.ico">
    <Nodes>
      <Node Name="Project" Text="$Name:  $" IconFilename="project.ico">
        <ParentPopupItems>
          <Popup Text="Add New Project" IsAdd="true"/>
          <Popup Text="Add Existing Project" IsAdd="true"/>
        </ParentPopupItems>
        <PopupItems>
          <Popup Text="Delete Project" IsRemove="true"/>
          <Popup Text="Remove Project" IsRemove="true"/>
        </PopupItems>
        <Nodes>
          <Node Name="File" Text="$File$" IconFilename="file.ico">
            <ParentPopupItems>
              <Popup Text="Add New File" IsAdd="true"/>
              <Popup Text="Add Existing File" IsAdd="true"/>
              <Popup Text="Link To Existing File" IsAdd="true"/>
            </ParentPopupItems>
            <PopupItems>
              <Popup Text="Delete File" IsRemove="true"/>
              <Popup Text="Remove File" IsRemove="true"/>
              <Popup Text="Exclude File" IsRemove="true"/>
            </PopupItems>
          </Node>
          <Node Name="Folder" Text="$Folder$" IconFilename="folder.ico">
            <ParentPopupItems>
              <Popup Text="Add New Folder" IsAdd="true"/>
              <Popup Text="Add Existing Folder" IsAdd="true"/>
            </ParentPopupItems>
            <PopupItems Separator="true">
              <Popup Text="Delete Folder" IsRemove="true"/>
              <Popup Text="Remove Folder" IsRemove="true"/>
            </PopupItems>
            <Nodes>
              <Node Name="refFile" RefName="File"/>
              <Node Name="refFolder" RefName="Folder"/>
            </Nodes>
          </Node>
          <Node Name="Properties" Text="Properties" IsReadOnly="true"  IsRequired="true" IconFilename="properties.ico"/>
          <Node Name="References" Text="References" IsReadOnly="true"  IsRequired="true" IconFilename="references.ico">
            <Nodes>
              <Node Name="Assembly" Text="$Assembly$" IsReadOnly="true"  IconFilename="reference.ico">
                <ParentPopupItems>
                  <Popup Text="Add Reference" IsAdd="true"/>
                </ParentPopupItems>
                <PopupItems>
                  <Popup Text="Remove Reference" IsRemove="true"/>
                </PopupItems>
              </Node>
            </Nodes>
          </Node>
        </Nodes>
      </Node>
    </Nodes>
  </Node>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Architect Interacx
United States United States
Blog: https://marcclifton.wordpress.com/
Home Page: http://www.marcclifton.com
Research: http://www.higherorderprogramming.com/
GitHub: https://github.com/cliftonm

All my life I have been passionate about architecture / software design, as this is the cornerstone to a maintainable and extensible application. As such, I have enjoyed exploring some crazy ideas and discovering that they are not so crazy after all. I also love writing about my ideas and seeing the community response. As a consultant, I've enjoyed working in a wide range of industries such as aerospace, boatyard management, remote sensing, emergency services / data management, and casino operations. I've done a variety of pro-bono work non-profit organizations related to nature conservancy, drug recovery and women's health.

Comments and Discussions