your solution works fine, but as I do the changes new errors comes up like this time it is content of element type "message-driven".......which is totally different from the previous one. Is there any configuration to make it compatible with the previous one.
Errors like that just indicate that your xml files are not following the dtd. The best thing to do is fix the xml files. However, if you want to stop the validation from happening, then maybe this will help. I'm not sure though, since i haven't given it a try myself.