From: Tobias Reif Date: 2001-11-16T01:53:15+09:00 Subject: [ruby-talk:25281] Re: ANN: REXML 1.1a3 David Alan Black wrote: > But the output doesn't have to be well-formed, only the input. What would be the point then? Then the output of an XML writer can't be read by an XML parser. If it's an XML writer, it should @ least be possible to generate a well-formed document. When there's a package parser+writer, and I input a well-formed document, then call the writer to serialize all out, I want to get an equivalent (entities resolved), well-formed document as output. As far > as I can tell, entity replacement is a pretty central thing to the > activity of an XML parser. I guess in an XML transformation you'd > want to leave them intact, but for parsing as such I think it's > assumed that entities will get replaced. Absolutely. So what about replacing < with the NCRs < or &#60; ? http://www.w3.org/TR/REC-xml.html#sec-predefined-ent Wouldn't it be great to have some real XML connaisseurs/experts who volunteer and help with implementing a conforming parser? ;) Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/