Does dynamic attachment return only xml (and not label)

I am asking this second time, I will highly appreciate if someone can clear this, in my case dynamic attachment returns xml value which is a number (hospital code) but what I want is Hospital Name, any work around? I using the following statement -
instance(‘dhregistration’)/root/data[identification/unique_id= current()/…/child_registration]/identification/facility_name

@yasirsaeeed, the dynamic data attachment should return you the label instead of the XML value. Did you follow the sample XLSForm shared in the support article?