Re: [tcljava-user] jacl 1.3.1 regexp
Brought to you by:
mdejong
From: Tanzer, T. <tro...@am...> - 2007-04-09 19:30:30
|
=20 I know nothing of of WAS and sa4was, but another option is to avoid using regexp at all to parse XML and use an XML parser. As mentioned, the TclXML package isn't ported yet, but writing a wrapper around the apache xml handlers is relatively simple. I have a simple implementation using the org.xml.sax package. I just extend the DefaultHandler class, and implement the methods I need to send the event contents to a tcl procedure (very much like the tclxml API - I actually reuse the handlers from my tclxml apps). It doesn't look that hard to more or less implement nearly the same API as tclxml has for SAX parsing, but I've never needed anything beyond start/char/end events, and I stopped there. =20 |