"ted sandler" <[EMAIL PROTECTED]> writes:

> Hello.  I am trying to find a way to access the raw document-text that
> triggered a sax-event.
> 
> For example, if my document handler's "start-element" method gets called, is
> there a way to get the original character string (i.e. non-parsed) that
> generated the "start-element" event?
> 
> The reason why I ask is that I am developing a "middleware" system that will
> break large XML files into individual records that will be handed off to
> miniparsers defined by end-users who've specified their own parsers.  As
> such, it would be great if I could just pass the original XML text through
> to the end-user, unaltered.

Hey Ted,

I think that it's possible, but to do so I'd have to open up a whole
lot of the Xerces-C internals to let you get at it - I believe that it
would mean given access to the underlying Scanner.

If you would be so kind, could you ask this question on the
xerces-c-dev list, and see what they say? If there is a way, I'll make
sure that SWIG wraps the needed bits for Perl, and you can get it
working.

If there isn't a way, I'd rather not spend the time trying.
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to