>> What might create such a structure... a document without a root element >> but referred to by 100,000 elements of <token>xyz</token>? > > Broken extension function?
I do use two extension functions that return a String instance each, and another that returns an int. I don't use any extension functions that return nodes. Would calling such functions end up creating <token> elements in a DTM instance somewhere?