Fixes for XMLElement with text children