fixed a bug when attribute values contain greater than > and less than > characters