GithubHelp home page GithubHelp logo

patrickfrey / textwolf Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 3.24 MB

textwolf is a C++ template library for processing XML in various character set encodings. It has interfaces for iterating on unicode characters, XML elements and elements typed by xml path selection expression matches. It supports chunk-wise processing of input and has a peformance competitive among the fastest open source XML processors.

License: Mozilla Public License 2.0

Makefile 0.24% C++ 99.76%

textwolf's People

Contributors

patrickfrey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pombredanne

textwolf's Issues

Only character entity definitions are allowed

Entity definitions as defined in XML are known as a source of possible DoS attacks.
textwolf allows only character entities and they have to be passed down from the caller.
I do not see any reason to change this.

The memory usage calculation is crap

textwolf calculates an estimation of how much memory it will use when processing XML input.
This mechanism leads to out of memory exceptions when the expressions get complex.
Rethink and reimplement !

entity definitions in XML are ignored

Entity definitions in the XML processed are ignored.
Entity definitions have to be passed to the parser as read only table.
If they are defined in this table they are parsed and substituted in the XML source.

BOM character sequenced are not respected

The character set encoding has to be detected by the caller.
So BOM character sequences (Byte Order Mark U+FEFF in UTF-16)
should be ignored. Currently this is not the case.
The caller has to pass an XML without leading BOM characters down to textwolf.
Because the client has to detect the character set encoding anyway, skipping BOM
before passing th content to textwolf should be doable without big effort.

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.