aa generator for x3dom code