put local variable inside _toXmlStr