Missing node types (comment and processing-instruction)

This pull request adds support for the missing node types comment and processing-instruction, allowing them to be created, recognized during parsing, and used for type switching.