So just changing those few procs to use the tDOM API should be easy.
tDOM uses the Document Object Model which is a standard API for accessing XML documents.