Initial implementation of a switch case for the document parser. (Note this implementation results in no document being parsed, do not attempt to use this version.)