Neko, XML and Entities

Just put in a simple solution to the Rosetta Code XML/Input task. Too simple really; it does not deal with Entity encoding. http://rosettacode.org/wiki/XML/Input#Neko

Any hints on how to make that solution a little more complete? I relied on the recode external program to make the output match expectations.

Have good,
Brian