This note describes an XML-based markup language for defining banks (BDML) for PrimEx analysis software. The C++ code for the header file which defines the bank structures and the initialization sequence for the banks are generated from an ascii BDML file by a perl script. A web page documenting the bank structure is also generated. Syntax of the BDML and procedures for using it are provided.