[parser] Redesign `readNode`. Use tag detection.
[parser] Add the document reader.