[webkit-dev] Safari and libxml2

Christian Dywan christian at twotoasts.de
Mon Jul 21 03:20:23 PDT 2008


Am Mon, 21 Jul 2008 17:26:56 +1000
schrieb Glenn Kelley <Glen.Kelley at nicta.com.au>:

> Hi,
> 
> I am curious as to how much of the webkit project is used by Safari.
> 
> WebCore contains a DOM interface for navigating XML files, but Safari
> seems to include libxml2.dll.
> 
> It was quoted on the apple mailing list
> http://lists.apple.com/archives/Webcore-dev/2003/Jul/msg00004.html
> "WebCore has no public API, and in general it's not a good idea to
> link to it directly."
> 
> Does WebCore have a public API? And do you need to link directly to
> the WebCore library or is there any way to access WebCore Classes
> through the WebKit dll?

I don't know about Safari internals, but I don't see a conflict in
using libxml2 and WebCore. The public interface to WebKit *is* WebKit
for all that matters, you won't see internal classes exported other
than in the form of WebKit API. If WebKit's DOM is not enough for your
use case example and you want to be able to, say, work with arbitrary
XML files, this is obviously out of the scope of WebKit, thus you can
use libxml2.

ciao,
    Christian


More information about the webkit-dev mailing list