[ expat-Patches-429501 ] predefined entities...

noreply@sourceforge.net noreply@sourceforge.net
Fri, 01 Jun 2001 19:52:55 -0700


Patches item #429501, was updated on 2001-06-01 19:52
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=429501&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David MacCormack (spoorancher)
Assigned to: Nobody/Anonymous (nobody)
Summary: predefined entities...

Initial Comment:
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 
such as:
   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 
installed.

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.

changes include:
   * new func decl in expat.h (or expat.h.in I suppose)
   * a few mods to xmlparse.c

Dave

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=429501&group_id=10127