Constraints namespaces made similar in XML and Java