parse document to title and content seperately