Handle node attributes better.
Updated shit
Fixed parsing error