Here's patch, for your fixing pleasure. :)
Created attachment 65314 [details, diff] metadoc.xml.patch
In CVS. Thanks.