From: Tobias Reif Date: 2002-06-10T05:44:18+09:00 Subject: Re: ANN: REXML 2.3.5 && 2.2.3 james@rubyxml.com wrote: >>I know this is probably naive from me but I thought I was told >>that "<",">" >>and "&" where the 3 characters that were never to be found in a text >>node in xml in their normal form. they should be replaced by the >>entities "<" ">" and "&". How can this bug be a bug then ? More precisely: "The ampersand character (&) and the left angle bracket (<) may appear in their literal form only when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they must be escaped using either numeric character references or the strings "&" and "<" respectively." > ">" is OK, though some (me) find it easier to read if all such markup is > escaped (rather than just the "<"). " The right angle bracket (>) may be represented using the string ">", and must, for compatibility, be escaped using ">" " In attributes it's either "'", '"', or "To allow attribute values to contain both single and double quotes, the apostrophe or single-quote character (') may be represented as "'", and the double-quote character (") as """. " http://www.w3.org/TR/REC-xml.html#syntax Tobi -- http://www.pinkjuice.com/