Comments (5)
Guys, dunno if it's correct, but seem to work for me.
https://gist.github.com/725268
I'm not sure how to push it, so tell me if it's correct patch I'll figure it out.
from node-expat.
So far, expat yields cdata as text. Isn't that enough? How do you want to handle cdata other than text?
Your proposed patch adds just the events, while cdata is still emitted as text. How are you going to deal with that? I just want to understand before I merge the code.
Also, how would you like to be mentioned in the contributors
field of package.json
?
from node-expat.
In my saxparser wrapper I use flag isInCdata using new methods for setting/unsetting it and then check it on 'text' event to fire my internal onCharacters or onCdata.
Pleast check it carefuly, it's my first cpp code ever.
I'm not pretending for it, but won't act against it either :)
from node-expat.
Thanks, it's included in node-expat 1.2.0.
Please notice that I renamed the events from startCdataElement/endCdataElement to startCdata/endCdata because CData sections are no XML elements and it's shorter.
from node-expat.
They're so called in expat itself, well doesn't matter really. Thanks a lot!
from node-expat.
Related Issues (20)
- Getting error in running a js file using xml2json in windows HOT 6
- Build Fails on Ubuntu 18.04 Node 12.3.1 HOT 9
- Memory leak and incorrect behavior of stop/resume HOT 3
- TypeError when I use it in a vue project! HOT 1
- node-expat cannot be imported in worker threads
- Robustness to control chars
- Node 14 update HOT 4
- Error with Java on Windows Server 12 HOT 1
- Build fails Linux Mint 20.1 Cinnamon HOT 1
- Stop() or Pause() emit "parser suspended" error then close ?
- Travis build is failing for Node.js version 16.13.0
- [CVE-2022-23852] of underlying libexpat HOT 4
- Cannot install on Windows 10 HOT 1
- How to solve 'ERR_DLOPEN_FAILED' with node_expat.node: Exec format error HOT 1
- Could not locate the bindings file node_expat.node [BUG]
- failed in npm install on nodejs 20 HOT 2
- Build failure on node v21.2.0 HOT 1
- Build failure on node v21.6.1 HOT 1
- Empty link?
- Build failure with node 22.2.0
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 node-expat.