there is no direct replacement. it was xml exchange between ado datasets and xml.
as net 4.* is what is known as stable product (no feature changes), even though XmlDataDocument has been depreciated for over a decade, it is probably safe to use.
when you start your migration to net 6+, then you should recode.