only using char attributes to parse xml