libxml++
2.36.0
|
Entity declaration. More...
#include <libxml++/nodes/entitydeclaration.h>
Public Member Functions | |
EntityDeclaration (_xmlNode* node) | |
virtual | ~EntityDeclaration () |
Glib::ustring | get_resolved_text () const |
Get the text with character references (like "ß") resolved. | |
Glib::ustring | get_original_text () const |
Get the text as read from the XML or DTD file. | |
_xmlEntity* | cobj () |
Access the underlying libxml implementation. | |
const _xmlEntity* | cobj () const |
Access the underlying libxml implementation. | |
![]() | |
ContentNode (_xmlNode* node) | |
virtual | ~ContentNode () |
Glib::ustring | get_content () const |
Get the text of this content node. | |
void | set_content (const Glib::ustring& content) |
Set the text of this content node. | |
bool | is_white_space () const |
![]() | |
Node (_xmlNode* node) | |
virtual | ~Node () |
Glib::ustring | get_name () const |
Get the name of this node. | |
void | set_name (const Glib::ustring& name) |
Set the name of this node. | |
void | set_namespace (const Glib::ustring& ns_prefix) |
Set the namespace prefix used by the node. | |
Glib::ustring | get_namespace_prefix () const |
Get the namespace prefix of this node. | |
Glib::ustring | get_namespace_uri () const |
Get the namespace URI of this node. | |
int | get_line () const |
Discover at what line number this node occurs in the XML file. | |
const Element* | get_parent () const |
Get the parent element for this node. | |
Element* | get_parent () |
Get the parent element for this node. | |
const Node* | get_next_sibling () const |
Get the next sibling for this node. | |
Node* | get_next_sibling () |
Get the next sibling for this node. | |
const Node* | get_previous_sibling () const |
Get the previous sibling for this node . | |
Node* | get_previous_sibling () |
Get the previous sibling for this node. | |
const Node* | get_first_child (const Glib::ustring& name=Glib::ustring()) const |
Get the first child of this node. | |
Node* | get_first_child (const Glib::ustring& name=Glib::ustring()) |
Get the first child of this node. | |
NodeList | get_children (const Glib::ustring& name=Glib::ustring()) |
Obtain the list of child nodes. | |
const NodeList | get_children (const Glib::ustring& name=Glib::ustring()) const |
Obtain the list of child nodes. | |
Element* | add_child (const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring()) |
Add a child element to this node. | |
Element* | add_child (xmlpp::Node* previous_sibling, const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring()) |
Add a child element to this node after the specified existing child node. | |
Element* | add_child_before (xmlpp::Node* next_sibling, const Glib::ustring& name, const Glib::ustring& ns_prefix=Glib::ustring()) |
Add a child element to this node before the specified existing child node. | |
void | remove_child (Node* node) |
Remove the child node. | |
Node* | import_node (const Node* node, bool recursive=true) |
Import node(s) from another document under this node, without affecting the source node. | |
Glib::ustring | get_path () const |
Get the XPath of this node. | |
NodeSet | find (const Glib::ustring& xpath) const |
Find nodes from an XPath expression. | |
NodeSet | find (const Glib::ustring& xpath, const PrefixNsMap& namespaces) const |
Find nodes from an XPath expression. | |
bool | eval_to_boolean (const Glib::ustring& xpath, XPathResultType* result_type=0) const |
Evaluate an XPath expression. | |
bool | eval_to_boolean (const Glib::ustring& xpath, const PrefixNsMap& namespaces, XPathResultType* result_type=0) const |
Evaluate an XPath expression. | |
double | eval_to_number (const Glib::ustring& xpath, XPathResultType* result_type=0) const |
Evaluate an XPath expression. | |
double | eval_to_number (const Glib::ustring& xpath, const PrefixNsMap& namespaces, XPathResultType* result_type=0) const |
Evaluate an XPath expression. | |
Glib::ustring | eval_to_string (const Glib::ustring& xpath, XPathResultType* result_type=0) const |
Evaluate an XPath expression. | |
Glib::ustring | eval_to_string (const Glib::ustring& xpath, const PrefixNsMap& namespaces, XPathResultType* result_type=0) const |
Evaluate an XPath expression. |
Additional Inherited Members | |
![]() | |
typedef std::list< Node* > | NodeList |
typedef std::map < Glib::ustring, Glib::ustring > | PrefixNsMap |
A map of namespace prefixes to namespace URIs. | |
![]() | |
static void | create_wrapper (_xmlNode* node) |
Construct the correct C++ instance for a given libxml C struct instance. | |
static void | free_wrappers (_xmlNode* node) |
Delete the C++ instance for a given libxml C struct instance, and also recursively destroy the C++ instances for any children. | |
![]() | |
_xmlNode* | create_new_child_node (const Glib::ustring& name, const Glib::ustring& ns_prefix) |
Create the C instance ready to be added to the parent node. |
|
explicit |
|
virtual |
_xmlEntity* xmlpp::EntityDeclaration::cobj | ( | ) |
Access the underlying libxml implementation.
Reimplemented from xmlpp::Node.
const _xmlEntity* xmlpp::EntityDeclaration::cobj | ( | ) | const |
Access the underlying libxml implementation.
Reimplemented from xmlpp::Node.
Glib::ustring xmlpp::EntityDeclaration::get_original_text | ( | ) | const |
Get the text as read from the XML or DTD file.
Glib::ustring xmlpp::EntityDeclaration::get_resolved_text | ( | ) | const |
Get the text with character references (like "ß") resolved.
If the entity declaration does not contain any reference to another entity, this is the text that an entity reference would have resolved to, if the XML document had been parsed with Parser::set_substitute_entities(true).