Fixes semantic tree creation via xmldom.