Revert "remove xml_printer which causes yaml to load early"

This reverts commit 3b995b754652349e868d1f744e421a12fdd34ef6.
remove yaml reference