GithubHelp home page GithubHelp logo

lunarmodules / luaexpat Goto Github PK

View Code? Open in Web Editor NEW
22.0 7.0 10.0 186 KB

LuaExpat is a SAX XML parser based on the Expat library

Home Page: https://lunarmodules.github.io/luaexpat/

License: MIT License

Makefile 0.69% Lua 81.96% C 17.35%
xml lua expat expat-xml-parser

luaexpat's People

Contributors

alerque avatar deining avatar hanshuebner avatar mwild1 avatar robert-scheck avatar tieske avatar tomasguisasola avatar zash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

luaexpat's Issues

Need a way to disable entity parsing

Currently, luaexpat always parses standard XML entities into their corresponding characters. While this is convenient for most applications, it inhibits creating programs that preserve entity encoding when serializing a document. expat provides for the XML_SetParamEntityParsing function to control whether it parses entities, and it would be useful to expose control over this functionality in LuaExpat, maybe as a parser:setentityparsing function.

User data table within the parser

It would be useful to have a user-definable data table attached to the parser, which would be visible to any callbacks called by that parser. This would help avoid the use of global variables. It seems like such a table could live in the lxp_userdata structure.

I have no experience with c/lua interoperation, so I don't know how hard this would be, but I'm willing to try to implement this.

new release

@mwild1 what would be required for a new release?

What I've noticed;

Any other concerns or things that need fixing/updating?

EDIT: updated status on the items listed

XML DOM implementation

I've been doing some work on an XML DOM (level 2) implementation, since we decided to drop XML support from Penlight.

Would the LuaExpat library be a good place for that? It would make the library more complete, and a one stop shop for XML needs probably. But it would require more maintenance probably to add something like that (assuming there will be a bunch of initial issues that need to be ironed out over time)

Thoughts @mwild1 @tomasguisasola ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.