Fixed ampersand encoding in XML and version ordering