[Prev][Next][Index][Thread]

Re: Dylan and XML



Well, I think I answered my own question as to how to bind an XML parser to
Dylan, at least in the case of FD 2 beta - use their amazing COM interface.

Some background,
* I had the MS XML parser loaded/registred on my machine
* I couldn't figure out how to find the interfaces to it so I could
hand-build the bindings (yuck)
* I half-remembered that during the project build, FD has a COM interface
option.

So, ... ,
(1) I created a new project specifiying that I wanted to create a DLL and
use a COM type spec,
(2) a selection box of all of the COM objects registered in my machine
appeared (including the XML parser which I selected)
(3) after answering a few more detail questions about my project, FD
crunched happily along for a little bit and I had my project with some
un-interesting code in it and a type spec.
(4) I built the project - lot's of interesting things happened - a
stubs.dylan appeared and the project compiled and linked and I had a DLL.
(5) I looked at the stubs.dylan, and there were all of the interfaces to the
MS XML parser - ready to import and use.

Maybe I'm being naive, but WOW !!!! That was pretty darn easy. Armed with my
DOM book and a Java-to-Dylan transliterator running in my head, I'm ready to
continue my project. I was within moments of abandoning Dylan and going to
Java, now I can procede with my virtue intact and my reputation as a
C++/Java-phobe un-sullied.

Just thought this group might find this interesting ...


Ron Franke-Polz

Ron Franke-polz wrote in message ...
>I've got a project where I need to parse and create XML documents. Does
>anyone have any experience (or pearls of wisdom) on how I can bind a XML
>parser to a Dylan program or XML and Dylan strategies in general? I'm
>looking to linearize object graphs to XML and and them re-constituting them
>back.
>
>Thanks,
>
>Ron Franke-Polz
>ron.franke-polz@iac.honeywell.com
>
>
>
>





Follow-Ups: References: