This is a sample tree that demonstrates the main features of the program.
<?xml version='1.0'?>
<treeform version="0.2">
<!-- Sample form based on "MS Word Issue" sample form from The Form Letter Machine -->
<!-- For more info visit the DonationCoder.com forum -->
<!-- NOTE: these comments about the file must follow the top treeform root node -->
<!-- Containers are sections for displaying output blocks; these are created in order listed -->
<!-- the inputs container is where we will place our input variable blocks -->
<container id="inputs" caption="Free-form Inputs" print="false">
</container>
<!-- The main container is where we will put most of our output -->
<!-- Note that we set it to explicitly use bbcode and set the justification and indentation -->
<container id="main" caption="Letter Contents" format="bbcode" align="justify" indent="-15">
</container>
<!-- We use an appendix for displaying some extra private info -->
<container id="appendix" caption="Extra Information" autohide="false" print="false">
</container>
<!-- Inputs are blocks of free form inputs that are shown by default in the "inputs" container at top -->
<!-- By default these will be hidden if not referred to in the text -->
<input id="name" type="string" caption="name" hint="Hey!|look in the text below for {%name%}, that's where the name will show">
What is the name of the person being written to?
</input>
<input id="clippyage" type="string" init_value="40" maxlength="5" size="10" caption="clippy age" hint="please specify in years">
What is the age of your clippy instantiation?
</input>
<!-- Now we have the tree nodes shown in the side bar -->
<!-- Note that we can initialize the default checked and expansion states -->
<node type="checkbox" init_checked="true" caption="Microsoft Word Reply" init_expanded="true">
<!-- And here is an output block that refers to the name from the input variable earlier -->
<output container="main">
Dear [b]{%name%}[/b],
Thank you for your inquiry. I always like to meet new people!
</output>
<!-- The next two nodes are radioboxes, so only one can be checked at a time (we set our default) -->
<!-- Note that the first radiobox contains two output blocks, directing different text to different containers; both will show when checked -->
<node type="radiobox" caption="MS Employee" hint="Pay attention!|check this if they work for microsoft">
<output container="main">
As you know, this company is out of it's mind with power.
</output>
<output container="appendix">
*this should appear in appendix, in relation to the "ms employee" section.
</output>
</node>
<node type="radiobox" caption="Not MS Employee" hint="check this if they are an ordinary schlub" init_checked="true">
<output container="main">
Microsoft is committed to making your experience a [i]good[/i] one.
</output>
</node>
<!-- a folder node is just like other nodes except it shows as a folder icon and has no checkbox -->
<node type="folder" caption="Their Problem" hint="Idiot:|this is where you select what kind of problem they are having; ask if you are not **really** sure.">
<!-- Here we define a label type node, which has no checkbox and is just used to show the user something and organize output -->
<!-- Note that we specify a custom icon here for this node -->
<!-- Because this is a label type, the output will be shown as long as the parent nodes are checked; if user clicks on the icon in the tree, the outputs governed by the label node will flash -->
<node type="label" caption="Remember" icon="warning">
<output container="main">
Remember i am just a trainee.
</output>
</node>
<node type="checkbox" caption="Crashes">
<output container="main">
Sorry to hear that the program crashes so frequently.. This almost never happens any more for people who have upgraded to the latest service pack.
</output>
</node>
<node type="checkbox" caption="Won't Start">
<output container="main">
The fact that Microsoft word is not starting at all, suggests that your computer is f*cked. Try reinstalling another operating system, preferably not an open source one.
</output>
</node>
<node type="checkbox" caption="Problem related to clippy" init_checked="true">
<output container="main">
We apologize for your {%clippyage%} year old [footnote=clippy]It's widely unknown that clippy was an invention of [url=http://www.wikipedia.com]Oscar Wilde[/url], who sent it back in time[/footnote]-related issue. Please see tech support bulletin cmd (clippy must die) [hint=MICROSOFT SAYS:|this is an internal document reference]44335[/hint].
</output>
</node>
</node>
<node type="checkbox" caption="Closing Thanks">
<output container="main">
Microsoft wants to thank you for your patronage and your patience.
</output>
<node type="radiobox" caption="Signed Real" init_checked="true">
<!-- note that for this output, we *override* the default alignment of the container and switch to right alignment for the signature -->
<output container="main" align="right">
signed, yours faithfully, Mouser
</output>
</node>
<node type="radiobox" caption="Signed Fake">
<output container="main" align="right">
Ever yours, Bill Preston Gates
</output>
</node>
<node type="radiobox" caption="No Signature">
<output container="main">
-annoymous
</output>
</node>
</node>
</node>
</treeform>This sample form was created by mouser, based on the sample form included with the desktop version of The Form Letter Machine.
