Just an update. Attributes seem to be parsing correctly now.