add username processing to XML