xddump produces a tagged file where each entry is split into components (such as alarm offsets, flags, entry text etc.) which are identified with a tag. The tagged file can then be used by other utilities. One utility that uses the output file from xddump is xdrestore which restores a calendar from a tagged file.
xddump can be run in either display mode or backup mode. In display mode, the contents of a calendar is displayed on the screen while in backup mode, a tagged file is written.
In display mode, xddump provides a 'hook' for your own customized output. The tagged file produced by xddump is passed to a program or shell script you provide. This allows you to customize the output from xddump.
$HOME/XDiary.backup
Comments, suggestions, and bug reports are always welcome.