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 :