Issue 333 ebi xml gen and sub

Got it, thanks. I created #365 to fix this.