Re: [xml] libxml vs stl



On Tue, Nov 22, 2005 at 01:17:49PM -0500, Stefan Seefeld wrote:
You probably want some unicode library in conjunction with libxml2.

  libxml2 uses UTF-8 which covers the full Unicode range, so this does not
make much sense. The API is already Unicode ready.

The remaining question then is about how to pass data between that unicode
library and libxml2.

  Stick to UTF-8 !

I have been suggesting a new C++ API (wrapper around libxml2) on boost.org
(http://boost.org/) and a big part of the discussion is precisly about how
best to do that conversion (see 
http://lists.boost.org/Archives/boost/2005/10/96129.php)

  Don't do conversion and keep UTF-8, converting back and forth all the time
bustring by substring is gonna be quite costly, probably more than the cost
of parsing the data.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]