Add DOM helpers as used in Substance.NLMImporter.