From: Sean Russell Date: 2002-06-12T05:20:31+09:00 Subject: Re: [OT] Re: ANN: REXML 2.3.5 && 2.2.3 Tobias Reif wrote: > It must be escaped everywhere if it's part of that sequence but not part > of the ending delimiter of a CData section. > > And where does the spec say > > >> not if it appears elsewhere in the document. The structure of the 'rule' sentance dictates that they are speaking strictly of CData sections. This is an important point, because the even non-validating parsers must raise parsing errors -- if you were right, then REXML should raise an exception if it encounters an unquoted '>' in a text node. However, as an illustration of why unquoted '>' may validly exist in XML documents, consider the Oasis test 'xmlconf/xmltest/valid/sa/103.xml': ]> <doc> -- |.. "The greatest security hazard is a false sense of security." <|> -- anon /|\ /| |