Comments (2)
btw, i also tried to just write "chunks" to the parser inside the file read stream, but getting this error:
/usr/local/lib/node/.npm/sax/0.1.2/package/lib/sax.js:257
while (parser.c = c = chunk.charAt(i++)) {
"write - Write bytes onto the stream. You don't have to do this all at once. You can keep writing as much as you want".
do you have a simple example of not writing an entire buffer but writing chunks to to the parser. perhaps that will help with the memory issue?
from sax-js.
okay, i plowed away and saw the prettyprint example, i noticed i wasn't passing the encoding of utf8 into the filestream, and with that the parser error above goes away (as does the memory issue if i write in chunks, not the entire buf).
sorted.
from sax-js.
Related Issues (20)
- <script>a = "</scr" + "ipt>";<script> is parsed incorrectly
- Processing instruction ending with "?" fails to parse
- closing square bracket in a doctype comment leads to an error
- Missing dependency 'stream' HOT 8
- Project still active? HOT 5
- Move away from Buffer constructor
- Underscores in string causing Error
- Is this code safe against various XML attacks? HOT 1
- Multiple root elements, text in second root
- Problems with V10 HOT 2
- Are Promises supported (asynchronous callbacks)? HOT 2
- BUG: Non-strict entity detection misses close tag
- Attributes in root element not parsing
- XML within XML being parsed HOT 2
- Max buffer length exceeded: attribValue HOT 1
- opentag and closetag events not firing HOT 1
- Stream : Uncaught TypeError: Cannot read property 'prototype' of undefined HOT 3
- parser's tag does not reflect actually visited element in ontext
- Notify if onclosetag is sent for a non-existing closing tag
- HTML not parsed with text event
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sax-js.