The constructor for the element named "elem" uses the name "attr" for more than one attribute. Error QName=err:XQST0040.