Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resume parser in case of Buffer exceed attrValue #273

Open
ecofi opened this issue Aug 4, 2024 · 0 comments
Open

Resume parser in case of Buffer exceed attrValue #273

ecofi opened this issue Aug 4, 2024 · 0 comments

Comments

@ecofi
Copy link

ecofi commented Aug 4, 2024

Hi,

is it possible to resume the parser if case of exceeding Max Buffer? I understand there is a possibility for setting sax Max Buffer to infinity but this will cause kind of crash. Hence, I would like to set a fixed Buffer Length and if exceeded the parser should resume.

Additional information:

  • one attribute value exceeds the mx buffer length
  • the parser (running as a saxStream) has stopped with parser.state = 27
  • parser.resume() has no effect when catching the error

Is is possible to resume the parser an only skip this single attribute with attribute value exceeding the max buffer length? Would greatly appreciate any idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant