I try to write an editor to visualize and update an EAD file which is like a XHTML file but with specififc rules and tags (see https://www.loc.gov/ead/. Example of an EAD file : https://www.loc.gov/ead/tglib/appendix_c.html). To realize this task, I think the best way is to parse/validate the file, then represent it to a virtual DOM, which I can manipulate easily (add new tag or text, delete some parts or just update, etc.).
Questions :
I try some stuff with jsdom (https://github.com/jsdom/jsdom) but the result is not fine. I'm open to any remarks or propositions to solve the problem.
1.4m articles
1.4m replys
5 comments
56.9k users