I had some fun a while back writing this XML parser in Typescript, after taking interest in tokenisation and compilers.<p>You can try it out in your own Javascript projects with a simple `npm install xml-trap` and you're good to go! The tokenizer used internally is also exposed (with `createTree`) for anyone to explore and have fun with.<p>Contributions are welcome!