From: bbense+comp.lang.ruby.Jun.01.02@... Date: 2002-06-02T02:48:09+09:00 Subject: Re: Ruby, XML schema( RELAX NG) and a Q&D parser -----BEGIN PGP SIGNED MESSAGE----- In article <3cf7b339@news.mhogaming.com>, Sean Russell wrote: >bbense+comp.lang.ruby.May.31.02@telemark.stanford.edu wrote: > >> - - I guess I didn't explain very well. I don't want a general >> purpose XML parser. I want one that only groks the messages >> of the protocol. I want to use a general Purpose xml parser >> to write the code for the special purpose XML parser. Sort >> of like using lex and yacc. > >I don't think that you'll gain much in speed, especially for the effort >involved. - - You're right I should test with Expat first. I have written parsers for other protocols than require a lot less code than any XML parser I've seen. XML only LOOKS simple. > >However, you could probably generate a parser with Rockit, although getting >the output turned into C might be a chore. > >> - - Basically, I need to go from C struct to XML and back. >> It would be best if all the code to do this were in C. >> I'd like to use Ruby to write that code from the RELAX >> NG description of the XML. > >Ah. Ok. Well, this is a topic beyond my interest and expertise. > - - I think for a first pass, I'm just going to try to get the C struct headers written from the RELAX NG schema descriptions. It's looking like full RELAX ng is too complicated for what I want to do. I think XML would be much more useful if the design committees had to play Russian Roulette with an extra bullet for every new feature. Deleting an existing feature would allow you to take bullets out the gun %-). - - Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBPPkFsQD83u1ILnWNAQF0ZQQAiaY9veMnUpDJ3J587Izl8JgHpz9C328q 5s2h4D5imH1hpMVJtOSLJgbwCoZUq4t8vb/ljSAt9NbhWIDt7w+Wmu5hynNBfi8E Cn5F3Gqh03Xxeux6aGqsvmUS9NH6Wk4ajwgbcISD4RZFsVnB0Cc15tNRPYvUZCsq /L6nAWGN9VI= =foGV -----END PGP SIGNATURE----- --