Order of xml element not valid

Hi all experts!

Can any body tell me the way to solve this problem
I have a package that run very good, but i must to change its name because it conflict with an other package, and after i rename it when i send and xml document that was reference to a Document Type, the order of xml element is not same with the Doc Type. I think this because some data has not rebuild yet, but i can’t solve this problem, please help me!
Thanks all!
TanNM