smartxml: allow for registering extensions before initial xml processing