NXHTML added

forked from Jim Myhrberg. NXHTML support added.