[ccan] It was only a matter of time...

Rusty Russell rusty at rustcorp.com.au
Tue May 17 14:27:33 EST 2011


On Mon, 16 May 2011 19:15:38 +0930, Daniel Burke <dan.p.burke at gmail.com> wrote:
> As <http://www.grinninglizard.com/tinyxml/> it's<http://expat.sourceforge.net/>
>  common <http://www.minixml.org/> knowledge <http://xmlsoft.org/>
> that<http://xerces.apache.org/xerces-c/>
> the <http://www.cs.rpi.edu/~tayloj/CL-RDFXML/>
> world<http://common-lisp.net/project/cl-xml/>
> doesn't <http://common-lisp.net/project/s-xml/>
> have<http://www.common-lisp.net/project/xmls/>
> enough <http://sourceforge.net/projects/pyxml/> XML <http://lxml.de/>
> parsers <http://wiki.python.org/moin/PythonXml>,
> I<http://library.forum.nokia.com/index.jsp?topic=/S60_5th_Edition_Cpp_Developers_Library/GUID-35228542-8C95-4849-A73F-2B4F082F0C44/sdk/doc_source/reference/reference-cpp/XML_Framework/Xml_1_1CParserClass.html>
> decided <http://cookxml.yuanheng.org/> to <http://woodstox.codehaus.org/>
> fix <http://php.net/manual/en/book.xml.php>
> that<http://infinitesque.net/projects/4Suite/docs/CoreManual.html>
> .
> 
> Well, my real motivation was to have a pure C xml parser that I could drop
> into an existing project, that had no dependencies and is very small. Think
> "I have 4Mb of RAM" small. It uses buffer size + final data structure
> memory, and as far as I can tell it should function correctly with a buffer
> as small as 3 bytes, although I found about 3k works fastest on my setup.
> 
> It's 340 lines, plus 60 lines of test harness, and doesn't leak a byte.
> Malicious XML should do no worse than create extra text nodes. It also
> totally ignores character sets; it's 7bit ASCII or the highway.
> 
> I figure CCAN would be the place to put it. How do we go about that?

You mail it here!  Whatever format you want: tarball, git pull request,
whatever.  Then you send me your public ssh key and I give you commit
access to your new module in the ccan git repo.

Cheers!
Rusty.


More information about the ccan mailing list