From: Sean Russell Date: 2002-05-31T06:05:06+09:00 Subject: Re: Ruby, XML schema( RELAX NG) and a Q&D parser bbense+comp.lang.ruby.May.30.02@telemark.stanford.edu wrote: > - - How hard would it be to use ruby to write a tools to take > the RELAX NG schema description and write out a C parser? > Ideally, I'd like to go from XML to a C struct. > > - - I'd guess REXML and Rock'it would be places to start, any > other hints. REXML won't help you here, because REXML /barely/ deals with internal DTDs, and doesn't have any native XMLSchema support (yet). What you want sounds like a lot of work, to me. I know I'm the REXML guy, but from what I understand about what you want, I'd /strongly/ recommend going with XMLParser. Your primary concerns are speed and streaming, and you don't care about being dependant on a native library. This is XMLParser in a nutshell. Its streaming parser is quite fast. -- |.. "Familiarity breeds contempt, but without a little familiarity it's <|> impossible to breed anything." /|\ --- Noel Coward /| |