Arabica: Better XML output

Done some work on filter/Writer. Currently, it doesn’t do entity escaping at all, which obviously means it doesn’t always create well-formed output. This morning I hooked up the lexical handlers, so it properly brackets CDATA with [CDATA[…​]] pairs. Next I’ll get it escaping < > & ' " properly. After that I’ll make sure it works with wide character output too. That should shake out XMLFilterImpl a bit too.

I want Writer to generate correct markup - that’s why it’s in the SAX directory, not in examples. It can then act as both an exemplar Filter implementation, as well as a useful filter in its own right. Writer is implemented as a filter, rather than as an end SAX event consumer, so it can be added at any point in a SAX pipeline. Say you were building some complex pipeline which does all kinds of clever transformation. You could slip a Writer in at each stage, each directing its output to a different file and so capture the XML at every stage. What a rocking debug tool that would be 🙂


Tagged code, arabica, xml, and c++


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired



Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired