internal static extern int tidySetErrorBuffer(IntPtr tdoc, ref TidyBuffer buffer);
internal static extern void tidyBufFree(ref TidyBuffer buf);