in reply to
From a folder, read all the XML files and add the end tag if not present.
Multilevel tag closing, or use XML::Twig with start_tag_handler, where you decide if to close main , or same with Marpa::HTML or XML::LibXML, Repair malformed XML
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (246 votes),