Fix fake polymorphism in XMLBuilder, because there is no such thing in PHP