HTML and XML are not same just given for illustration.
For input HTML file
<p class=MsoNormal style='tab-stops:.5in'><b><span style='mso-tab-count:3'> </span></b><b><span
lang=AR-SY dir=RTL style='mso-bidi-language:AR-SY'>عزت
ابراهيم
الدوري</span><o:p></o:p></b></p>
receive XML with UTF-8 encoding
<Name Type="Script"> صدام حسين التكريتي</Name>
Basically I need a sequence ASCII sequence &#xxxx;&#yyyy;&#zzzz; to be saved as utf-8.
I am not quite sure if you want to convert the HTML decimal encoding in place or do a transformation from HTML to an XML document. Converting the decimal (or hexadecimal) encoded characters to UTF-8/16 is not too difficult. However, properly parsing HTML in the wild can be a challenge (see this thread).
Here is a naive class for converting decimal and hexadecimal encoded characters in place and returning a .Net string (I make no guarantees about its correctness or robustness - particularly if you are trying to use it against malformed HTML or have surrogate pair characters):