if the setence is:
"Hello, my name is XXX. What's your name? "
I think the better way is congrat the visitor with
Welcome to XXX , (and answer the visitor) My name is YYY. "Nice to meet you " it´s commonly used when you are in a less formal situation.