I have run into that error before when compiling framework, but its been a while.
I believe it leans towards a bad resource id, in the public.xml if my memory serves right. When creating the resource ids for the new resources, be sure to start at the end of the resource id's for that section, and enumerate your new ones in accordance with what is already there.
Its hard to say without looking at the xml itself. If you want to post your edited public.xml that is causing the compiling errors, I'll take a quick look at it and see if I can find the culprit.
You ride yourselves over the fields
And you make all your animal deals
But your wise men don't know how it feels
To be thick, as a Br1cK
- sign up and we both get free space!
only if you really feel its necessary.