struct xmlEntity {
int type; /* The entity type */
int len; /* The lenght of the name */
const xmlChar *name; /* Name of the entity */
const xmlChar *ExternalID; /* External identifier for PUBLIC Entity */
const xmlChar *SystemID; /* URI for a SYSTEM or PUBLIC Entity */
xmlChar *content; /* The entity content or ndata if unparsed */
int length; /* the content length */
xmlChar *orig; /* The entity cont without ref substitution */
/* Extended when merging 2,3,5 */
struct _xmlNode *children;/* NULL */
struct _xmlNode *last; /* NULL */
const xmlChar *URI; /* the full URI as computed */
};
xmlEntityPtr
typedef xmlEntity *xmlEntityPtr;
XML_MIN_ENTITIES_TABLE
#define XML_MIN_ENTITIES_TABLE 32
struct xmlEntitiesTable
struct xmlEntitiesTable {
int nb_entities; /* number of elements stored */
int max_entities; /* maximum number of elements */
xmlEntityPtr table; /* the table of entities */
};
Do a global encoding of a string, replacing the predefined entities
and non ASCII values with their entities and CharRef counterparts.
Contrary to xmlEncodeEntities, this routine is reentrant, and result
must be deallocated.
doc :
the document containing the string
input :
A string to convert to XML.
Returns :
A newly allocated string with the substitution done.