Click here to Skip to main content
12,360,217 members (54,073 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

16.2K views
423 downloads
13 bookmarked
Posted

TDL File Merge Utility for .dan.g.'s ToDoList

, 9 Apr 2009 CC (ASA 2.5)
Rate this:
Please Sign up or sign in to vote.
Easily integrate a certain part of a TDL file into another one

Introduction 

This is a small utility that can be used to integrate one or several TDL files into a single one.

I have written this program because at a certain time I needed to merge several distinct ToDoLists in a single one.

While reading some of the messages on the todolist forum, I noticed that some users had similar needs to mine and tried similar approaches.

Therefore I'm publishing this utility as it might be useful to other users.

The choice of C# was mainly driven by its XPath library that makes it easy and quick to implement the required behaviour.

Usage

The Sample.zip contains a usage example of the tool.

Launching sample.cmd will execute the sample.

The provided project builds an executable named Tdl-merge.exe.

When launched from a command line, it takes the following arguments:

Mandatory Arguments

  • -src_tdl=<src.tdl> where src.tdl is the path of the source todolist file
  • -dst_tdl=<dest.tdl> where dest.tdl is the path to the target todolist file
  • -dst_task=<dest_task> where dest_task is the xpath of the destination task

Optional Arguments

  • -src_task=<src_task> where src_task is the xpath of the source task. If not specified, then all tasks from the src_tdl are merged.
  • -out_tdl=<outputfile> where outputfile is the name of the output file. If not specified, the dst_tdl is used instead.

Example

tdl-merge.exe
-dst_tdl="merged.tdl"
-dst_task="/TODOLIST/TASK[@TITLE='Main Tasks']/
	TASK[@TITLE='Main Task']/TASK[@TITLE='Imported Tasks (Specified)']"
-src_tdl="secondary-bis.tdl"
-src_task="/TODOLIST/TASK[@TITLE='B']/TASK[@TITLE='BB']"
-out_tdl="merged.tdl"

History

  • 9th April, 2009: Initial post

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-ShareAlike 2.5 License

Share

About the Author

.bil.t.
Software Developer (Senior)
France France
No Biography provided

You may also be interested in...

Comments and Discussions

 
Generaldst_tdl vs out_tdl Pin
.dan.g.16-Nov-09 19:09
member.dan.g.16-Nov-09 19:09 
I don't understand the difference between dst_tdl and out_tdl.

.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

GeneralRe: dst_tdl vs out_tdl Pin
Pierre de la Verre1-Dec-09 0:33
memberPierre de la Verre1-Dec-09 0:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160621.1 | Last Updated 9 Apr 2009
Article Copyright 2009 by .bil.t.
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid