Thread safe libxml2 for iOS 6