I do not think the progressive parse works that way. Think about it.
To be able to revert to a prior state in the parse then the parser has to:

Set the stream back to that position. (If it is a socketstream that is not
possible.)
and
"Forget" all seen entities, elements, attributes and so on in the validator
from that point to the current. (Which ones to forget? The parser would have
to backtrack by parsing back to that position.)

I think you are asking for something impossible. Try to solve the problem in
another way.

Regards
Erik Rydgren
Mandarinen systems AB
Sweden

-----Original Message-----
From: Daniele [mailto:[EMAIL PROTECTED]]
Sent: den 11 juni 2002 15:38
To: [EMAIL PROTECTED]
Subject: storing a token


HI there,

            I'm trying to keep a copy of a token in a SAX progressive
scan..but it dosen't seem to workL

Can anybody give me a help?

XMLPScanToken  tmpToken;

tmpToken = realToken; (realToken is the one filled in parseFirst)

            .
            . (some parseNext using realToken)
            .
realToken = tmpToken; (to restore the parse point back up the top)

I can't figure it outJ

Thanx a lot 4 your timeJ

Ciao from Italy (Rome)

Daniele

[EMAIL PROTECTED]


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

Reply via email to