Convert ext/xmlwriter to HNI.

Summary: Signed-off-by: Arthur Loiret <arthur.loiretens-lyon.fr>
Closes #3044

Reviewed By: @ptarjan

Differential Revision: D1410044