Seems to me like your client is asking you to *recreate* XML::Simple!
When you say that $client does not allow, do you mean you can't install and/or use the external module? If so, would it be possible to simply copy the module and paste it into your code?