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

Patch for new feature: event length [rt.cpan.org #51533] #49

Open
toddr opened this issue Sep 24, 2019 · 0 comments
Open

Patch for new feature: event length [rt.cpan.org #51533] #49

toddr opened this issue Sep 24, 2019 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented Sep 24, 2019

Migrated from rt.cpan.org#51533 (status was 'new')

Requestors:

Attachments:

From [email protected] on 2009-11-14 21:53:55
:

I'm implementing a module that will allow random access to the contents of XML files too big to 
fit into memory. I plan to scan the input file for specific element names and build byte offsets 
for the XML content of each of those elements. Using XML::Parser::Expat->current_byte almost 
allows for this but it does not leave a good way to remove markup from start events. 

The attached patch includes a new accessor method for XML::Parser::Expat called 
current_length. It wraps the XML_GetCurrentByteCount function exactly like 
XML_GetCurrentByteIndex does. The patch also includes changes to the documentation to 
reflect the new method.

Thanks for maintaing this great module. 

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

No branches or pull requests

1 participant