This code was very helpful for me, thank you.
But sometimes, i get an error, when binding the xrefs. The error code is 304, Unknown error. I found an error code description, that says, "304 User is disabled", which gives me no clue.
But despite that error, the xrefs are bound. UNLESS they have nested xrefs, in this case, only the main xref is bound, not the nested ones.