XMLReader.EntityDecl Event

Fires at an entity declaration. The is_parameter_entity will be True if the entity is a parameter entity.

Syntax

EntityDecl ( entityName, is_parameter_entity, Value, Base, SystemID, publicid, notationName )

Parameters

entityName

String

is_parameter_entity

Boolean

Value

String

Base

String

SystemID

String

publicid

String

notationName

String


For internal entities(<!ENTITY foo "bar">), value will be populated and systemID, publicID, and notationName will be empty strings. For external entities, value will be an empty string and systemID will be populated. The publicID argument will be empty unless a public identifier was provided. The notationName argument will have a populated value only for unparsed entity declarations.