module Entity:Useful properties of entities: The following submodule exports all stable properties of the entity classes. Please use this module, and notsig..end
Pxp_entity to access entities.
Note that the types entity and entity_id are also exported
by Pxp_types.
val get_name : Pxp_entity.entity -> stringval get_full_name : Pxp_entity.entity -> stringval get_encoding : Pxp_entity.entity -> Pxp_core_types.I.rep_encodingval get_type : Pxp_entity.entity -> [ `External | `Internal | `NDATA ]val replacement_text : Pxp_entity.entity -> stringval get_xid : Pxp_entity.entity -> Pxp_core_types.I.ext_id option
TRAP: The external ID may be a relative SYSTEM ID, and it is not
known to which base ID the relative ID must be resolved. So the
external ID may be meaningless.
val get_resolver_id : Pxp_entity.entity -> Pxp_core_types.I.resolver_id optionactive_id method
by the resolver.
The resolver ID contains more information than the external ID,
for example the base URL relative to which SYSTEM IDs should
be interpreted.val get_notation : Pxp_entity.entity -> string optionval create_internal_entity : name:string -> value:string -> Pxp_dtd.dtd -> Pxp_entity.entityval create_ndata_entity : name:string ->
xid:Pxp_core_types.I.ext_id ->
notation:string -> Pxp_dtd.dtd -> Pxp_entity.entityval create_external_entity : ?doc_entity:bool ->
?system_base:string ->
name:string ->
xid:Pxp_core_types.I.ext_id ->
resolver:Pxp_reader.resolver -> Pxp_dtd.dtd -> Pxp_entity.entity
doc_entity: If true, the entity is a document entity. XML requires
some additional restrictions for document entities. The default for
the argument is false.system_base: The base URL if SYSTEM identifiers are passed
as xidval from_external_source : ?doc_entity:bool ->
name:string -> Pxp_dtd.dtd -> Pxp_dtd.source -> Pxp_entity.entityPxp_types.sourceval entity_id : Pxp_entity.entity -> Pxp_lexer_types.entity_idval lookup : Pxp_lexer_types.entity_id -> Pxp_entity.entityval create_entity_id : unit -> Pxp_lexer_types.entity_identity_id is expected but no entity is available, except that
the back coercion lookup is not supported, and will raise
Invalid_argument.