Issue 333 ebi xml gen and sub

Forget it, got it now.