Hello After including xmerl header file with -include_lib("xmerl/include/xmerl.hrl") I have compilation error because DBG/2 already defined in my code. It seems strange to define general purpose macros like DBG in that place. BTW, xmerl does not use this macros anywhere. Thank you. -- Maxim Treskin