[Expat-bugs] [ expat-Bugs-624724 ] Distinguishing between GE's and PE's

noreply@sourceforge.net noreply@sourceforge.net
Thu Nov 7 01:14:24 2002


Bugs item #624724, was opened at 2002-10-17 11:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=624724&group_id=10127

Category: None
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Ernst Jan Plugge (rmc)
Assigned to: Karl Waclawek (kwaclaw)
Summary: Distinguishing between GE's and PE's

Initial Comment:
There is no documented way to distinguish
between a general entity and a parameter
entity in an ExternalEntityRefHandler.
Right now, the undocumented way is to
examine the value of the context
parameter to the handler, but the docs
clearly state that the context should be
considered opaque.

The feature request is to provide a proper,
documented way to distinguish between the
two.



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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-11-06 20:14

Message:
Logged In: YES 
user_id=290026

Reference.html updated accordingly in rev. 1.35.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-11-06 20:13

Message:
Logged In: YES 
user_id=290026

Reference.html updated accordingly in rev. 1.35.

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-10-17 12:30

Message:
Logged In: YES 
user_id=290026

You are right, it is not documented, but it is the right 
way to check the entity type.

Yes, the docs indicate (not clearly, IMO) that context
is an opaque pointer, but checking whether the pointer
is NULL is still OK, since that is not an attempt to
"look behind the curtain".

We need to update reference.html to properly
document this.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=624724&group_id=10127