Add support for fragment parsing documents