Feasability of creating simple in-game map editor (Monogame)

Hey there. Anyone have any experience or know of an example of an in-game map editor (think chip’s challenge or lode runner level complexity) that generates a tmx file? It seems like it wouldn’t be too difficult using something like XmlWriter, but I don’t have a lot of experience there. Any tips or links to libraries, etc?