E1cid's solution works, I only edited type_name
to:
type_name: Object.keys(obj_variable.type[0]).toString(),
which will pick out BOOL, INT, etc. from the horridly formatted XML. This was based off array to string on MDN.
My original code was inspired by this post by Steve-Mcl (and I just noticed you chimed in with a similar fix back then, too, E1cid!)
Thank you so much!