#include <Fl_XmlDoc.h>
Public Methods | |
Fl_XmlDocType () | |
Fl_XmlDocType (const char *name, const char *public_id=0, const char *system_id=0) | |
const Fl_String & | name () const |
Returns the name of the document type as specified in the <!DOCTYPE name> tag. | |
const Fl_String & | public_id () const |
Returns the public identifier of the external DTD subset. More... | |
const Fl_String & | system_id () const |
Returns the system identifier of the external DTD subset. More... | |
Fl_XmlEntities & | entities () |
Returns a map of all entities described in the DTD. More... | |
const Fl_XmlEntities & | entities () const |
bool | encode_entities (const char *str, Fl_String &ret) |
Encodes string to XML representation. More... | |
bool | decode_entities (const char *str, Fl_String &ret) |
Decodes entities in string to their actual values. More... | |
bool | has_entity (const char *name) const |
Search for entity with given name Returns true, if attribute is found. More... | |
bool | remove_entity (const char *name) |
Remove named entity from entity map. More... | |
Fl_String | get_replacement (const char *name) const |
Return replacement value for named entity. More... | |
void | set_entity (const char *name, const char *replacement) |
Add entity to map, If entity named 'name' exists already in map, it's value is replaced with 'replacement'. More... | |
Friends | |
class | Fl_XmlParser |
It can return a map of all entities(). This class provides the name(), public_id() and system_id() functions.
Definition at line 44 of file Fl_XmlDoc.h.
|
Decodes entities in string to their actual values. I.e. Converts "<test>" to "<test>" Returns true, any entities expanded.
|
|
Encodes string to XML representation. I.e. Converts "<test>" to "<test>" Returns true, any entities replaced.
|
|
Returns a map of all entities described in the DTD. NOTE: Map doesn't hold default entities. Definition at line 72 of file Fl_XmlDoc.h. |
|
Return replacement value for named entity. If entity is not found, empty string is returned.
|
|
Search for entity with given name Returns true, if attribute is found.
|
|
Returns the public identifier of the external DTD subset. Returns empty string if there is no public identifier. Definition at line 60 of file Fl_XmlDoc.h. |
|
Remove named entity from entity map. Returns true, if entity removed.
Definition at line 105 of file Fl_XmlDoc.h. References Fl_XmlEntities::remove_entity(). |
|
Add entity to map, If entity named 'name' exists already in map, it's value is replaced with 'replacement'.
Definition at line 120 of file Fl_XmlDoc.h. References Fl_XmlEntities::set_entity(). |
|
Returns the system identifier of the external DTD subset. Returns empty string if there is no system identifier. Definition at line 66 of file Fl_XmlDoc.h. |