On Mon, Feb 28, 2011 at 10:04 AM, Joerg Sonnenberger <jo...@britannica.bec.de> wrote: > On Sun, Feb 27, 2011 at 08:25:06PM -0300, Gustavo Sverzut Barbieri wrote: >> Again, this is far from standards compliant as libxml2, but it's even >> far from the bloat these xml libs carry. I'd propose it to be >> integrated into Eina as it's very useful and small. > > The problem with most adhoc XML parser implementations is just that. > They implement a (reasonable?) subset of XML, they work fine for a long > time and then someone comes and breaks them by inserting a comment here > or use one of the fancy encoding rules there. As such I would strongly > recomment trying to reinvent the wheel. Expat is reasonable small, it is > going to be around anyway, since libfontconfig uses it. It might help to > provide a nicer interface on top for handling some simple input formats > on top, but that's it.
I've worked with expat before and it's way more complex to use and heavy. Sure, it will work and will handle namespace, and encoding... but many times you don't want or need it. the current SAX-like api I'm calling is 1 single function that receives a buffer and a callback, calls you back with pointers to the buffer you handled it. It does not consider any form of encoding, thus it will never break, it's up to you. It will fallback nicely on unhandled conditions, like entity definitions are not handled, they are given to you as an open tag statement. That is because MOST of these files are ascii and do not use these xml nasty features such as entities & like. Even the escaping ({ or &) is not handled, at least with efl you're likely to not need it anyway as Evas already handles it for you. BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel