Co-workers and myself have found it useful to be able
to disable the expansion of default entities under
certain circumstances. For example, in a pipeline
app1 | app2 | app3
you only want app3 to actually expand default
entities, otherwise you'll get wellformedness (is that
a word ?:) errors if you have a character handler
A buddy of mine actually hacked the xmltok_impl code
and recompiled (which works quite well), but I decided
to take a stab at providing a function/runtime means
of changing this behavior.
The attached patch compiles, runs, and it produces the
expected results against my test cases.
* new func decl in expat.h (or expat.h.in I suppose)
* a few mods to xmlparse.c
Log in to post a comment.