alcinnzalcinnz@floss.social
Nov 16, 2026, 10:54 PMretooted alcinnz
Furthermore each iteration of this mainloop reads a chunk from the file exiting if none & hands it over to the XML parser propagating any errors.
Upon a start element it strips off namespaces, validates tags aren't nested too deeply & that we're not ignoring these descendents, counts <body> tags setting a flag ignoring anything outside, counts section tags handling all but the 1st section specially, <title> starts a new bold paragraph, as does <subtitle> centre-aligned, ...
3/?