Re: [tcljava-user] Looking for Example
Brought to you by:
mdejong
From: Shawn B. <sh...@qc...> - 2001-05-07 14:10:50
|
Dan Schenck wrote: > I'm looking for an example of establishing a callback to a Tcl proc from Java. What I have in mind > is parsing an XML file with the Xerces SAX parser and having the callbacks go to Tcl procs. This > may be too convoluted to do but essentially here is roughly the sequence of events: > > Tcl calls Xerces (Java) --> > Xerces parses XML and calls back to Tcl for each XML node --> > Tcl procs > > I would have to create an interp that my Java callbacks for Xerces could use to call a Tcl proc. Is > it that simple? > Yes its not very hard. I have done this successfully. > > Thanks, > > Dan > > ================================================= > Dan Schenck mailto:sc...@is... > Technical Principal > The Information Store http://www.istore.com > > 10777 Westheimer, Suite 1040 > Houston, TX 77042 > Ph: 713 787-6798 x166 Fax: 713 787-6772 > ================================================= > > _______________________________________________ > tcljava-user mailing list > tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tcljava-user -- -Shawn |