add method for parse of xml from nsdata type