I know very little about this addons nor did I use it. Did you
mean it worked previously in J6 but failed in J7? FYI this
addons will not work in J7 GTK, try test on j7 jconsole instead
if that matters.
Пт, 15 фев 2013, Thomas Costigliola писал(а):
> I am having a problem with the sax addon in J7. It seems like the
> 'characters' callback is never called. Here is one of the examples from the
> wiki:
>
> NB. object oriented sax parser specialization
> NB. extended to use text characters
>
> require 'xml/sax'
>
> saxclass 'psax3'
>
> showattrs=: (''"_)`(}.@;@:((',' , [ , '='"_ , ])&.>/"1))@.(*@#)
>
> startDocument=: 3 : 0
> L=: 0
> IGNOREWS=: 1
> )
>
> startElement=: 4 : 0
> smoutput (L#' '),'',y,'(',(showattrs attributes x),') {'
> L=: L+1
> )
>
> endElement=: 3 : 0
> L=: L-1
> smoutput (L#' '),'}'
> )
>
> characters=: 3 : 0
> smoutput (L#' '),y
> )
>
> NB. =========================================================
> cocurrent 'base'
>
> TEST3=: 0 : 0
> <body><p a="11">s123</p>Between<q b="12" c="3">z456</q></body>
> )
>
> TEST5=: 0 : 0
> <body><p>Case & Co<q c="3&4">z "num"</q></p>5&6</body>
> )
>
> 0 : 0 NB. Test
> process_psax3_ TEST3
> process_psax3_ TEST5
> process_psax3_ fread jpath '~addons/xml/sax/test/table.xml'
> )
>
> process_psax3_ TEST3
> body() {
> p(a=11) {
> }
> q(b=12,c=3) {
> }
> }
>
>
> The content between the tags is not printed because 'characters' is never
> called.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm