wrapped attribute values in text nodes to ensure proper entity encoding