Design Question - multiple XML parsers/ dependencies

Mohit Sindhwani <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <[email protected]>
Hi Guys,

We have an API that returms XML and we'd like to build a client library 
for it so that we can use it in multiple projects. The current 
implementation uses Rexml for the parsing but we tried Ox and it's 
really fast(!!). However, since it's native, the installation doesn't 
always work as smoothly, especially on Windows. So, I wanted to see if 
we could support Ox if the user installs it and use Rexml as the normal way.

How should we organise such code? Would it basically be two internal 
implementations selected based on a parameter, or detection of the 
installation? Just want to get some ideas or a link to a best practice 
or somehing similar.

Thanks for any help!

Best Regards,
Mohit.



Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.