26 typedef struct dtd *Dtd;
28 typedef struct entity *Entity;
34 AttributeDefinition previous);
47 NSL_Doctype_I *doctype;
116 NSL_Doctype_I *doctype;
117 NSL_ElementSummary_I *elsum;
188 NotationDefinition notation,
191 const Char *text, Entity
parent,
192 int line_offset,
int line1_char_offset,
193 int matches_parent_text);
204 #define NewExternalEntity(name, pub, sys, nnot, parent) \ 205 NewExternalEntityN(name, name ? Strlen(name) : 0, pub, sys, nnot, parent) 206 #define NewInternalEntity(name, test, parent, l, l1, mat) \ 207 NewInternalEntityN(name, name ? Strlen(name) : 0, test, parent, l, l1, mat) 208 #define FindEntity(dtd, name, pe) FindEntityN(dtd, name, Strlen(name), pe) 213 const Char *
name,
int namelen);
219 #define DefineElement(dtd, name, type, content) \ 220 DefineElementN(dtd, name, Strlen(name), type, content) 221 #define TentativelyDefineElement(dtd, name) \ 222 TentativelyDefineElementN(dtd, name, Strlen(name)) 223 #define FindElement(dtd, name) FindElementN(dtd, name, Strlen(name)) 226 const Char *
name,
int namelen,
229 const Char *default_value);
231 const Char *
name,
int namelen);
234 #define DefineAttribute(element, name, type, all, dt, dv) \ 235 DefineAttributeN(element, name, Strlen(name), type, all, dt, dv) 236 #define FindAttribute(element, name) \ 237 FindAttributeN(element, name, Strlen(name)) 242 const Char *
name,
int namelen);
248 #define DefineNotation(dtd, name, pub, sys) \ 249 DefineNotationN(dtd, name, Strlen(name), pub, sys) 250 #define TentativelyDefineNotation(dtd, name) \ 251 TentativelyDefineNotationN(dtd, name, Strlen(name)) 252 #define FindNotation(dtd, name) FindNotationN(dtd, name, Strlen(name))
struct attribute_definition * next
const char8 * ddb_filename
XML_API AttributeDefinition DefineAttributeN(ElementDefinition element, const Char *name, int namelen, AttributeType type, Char **allowed_values, DefaultType default_type, const Char *default_value)
XML_API void EntitySetBaseURL(Entity e, const char8 *url)
XML_API const char8 * DefaultTypeName[DT_enum_count]
const Char * default_value
XML_API void FreeDtd(Dtd dtd)
XML_API void FreeEntity(Entity e)
XML_API void FreeElementDefinition(ElementDefinition e)
XML_API const char8 * ContentTypeName[CT_enum_count]
CharacterEncoding encoding_decl
struct notation_definition * next
XML_API const char8 * EntityDescription(Entity e)
XML_API Entity NewExternalEntityN(const Char *name, int namelen, const char8 *publicid, const char8 *systemid, NotationDefinition notation, Entity parent)
enum attribute_type AttributeType
XML_API Entity DefineEntity(Dtd dtd, Entity entity, int pe)
enum entity_type EntityType
XML_API ElementDefinition DefineElementN(Dtd dtd, const Char *name, int namelen, ContentType type, Char *content)
const char8 * StandaloneDeclarationName[SDD_enum_count]
NotationDefinition notations
StandaloneDeclaration standalone_decl
enum content_type ContentType
XML_API ElementDefinition TentativelyDefineElementN(Dtd dtd, const Char *name, int namelen)
XML_API NotationDefinition DefineNotationN(Dtd dtd, const Char *name, int namelen, const char8 *publicid, const char8 *systemid)
AttributeDefinition NextAttributeDefinition(ElementDefinition element, AttributeDefinition previous)
XML_API void FreeNotationDefinition(NotationDefinition n)
XML_API const char8 * AttributeTypeName[AT_enum_count]
struct element_definition * next
enum default_type DefaultType
enum standalone_declaration StandaloneDeclaration
XML_API NotationDefinition FindNotationN(Dtd dtd, const Char *name, int namelen)
const char8 * version_decl
NotationDefinition notation
Entity predefined_entities
XML_API Entity FindEntityN(Dtd dtd, const Char *name, int namelen, int pe)
enum character_encoding CharacterEncoding
XML_API ElementDefinition RedefineElement(ElementDefinition e, ContentType type, Char *content)
XML_API void FreeAttributeDefinition(AttributeDefinition a)
AttributeDefinition attributes
XML_API ElementDefinition FindElementN(Dtd dtd, const Char *name, int namelen)
XML_API const char8 * EntityBaseURL(Entity e)
CharacterEncoding encoding
XML_API const char8 * EntityURL(Entity e)
enum markup_language MarkupLanguage
XML_API NotationDefinition RedefineNotation(NotationDefinition n, const char8 *publicid, const char8 *systemid)
EST_Item * parent(const EST_Item *n)
return parent of n
XML_API AttributeDefinition FindAttributeN(ElementDefinition element, const Char *name, int namelen)
XML_API NotationDefinition TentativelyDefineNotationN(Dtd dtd, const Char *name, int namelen)
Entity parameter_entities
ElementDefinition elements
XML_API Entity NewInternalEntityN(const Char *name, int namelen, const Char *text, Entity parent, int line_offset, int line1_char_offset, int matches_parent_text)