made #generate on xmldoc abstract