Guerry A. Semones wrote: ><snip> >Dave Thomas wrote: >> What would it take to write a non-validating parser in Ruby? (Or is >> there one already?) > >This is one of the first things I looked for when a friend turned me >onto Ruby a few weeks ago. I was glad to see the expat support, but >raised the same question that both you and Aaron have now raised: what >would it take and why not? The specs are out there and Ruby >definately has the toolsets to do the parsing. I'd guess speed might >be the main concern.... Any speed pain points could be optimized and/or recoded in small C files. Ok. So what would this Ruby/XML thing do? Is it enough to be SAX-like? Or does it need to be true SAX? Does it also need DOM abilities? Could these be in separate libraries? Could we simply port the Python XML parser to Ruby? Kevin