Fixed stupid cdata bug. Also added normalization per spec for attributes and inner text.