/*
5 * Authors: see git history
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
20 char const *ret = std::strrchr(qname,
':');
38 Node const *n =
static_cast<Node const *
>(cn);
39 unsigned const n_pos = n->position();
41 return n->parent()->nthChild(n_pos - 1);
49 return g_strdup(
static_cast<Node const *
>(n)->attribute(a));
Interface for refcounted XML nodes.
G_BEGIN_DECLS typedef gconstpointer CRXMLNodePtr
static char const * local_part(char const *const qname)
TODO: insert short description here.
static char const *const parent
static CRXMLNodePtr get_first_child(CRXMLNodePtr n)
static char * get_attr(CRXMLNodePtr n, char const *a)
static CRXMLNodePtr get_next(CRXMLNodePtr n)
static CRXMLNodePtr get_parent(CRXMLNodePtr n)
CRNodeIface const croco_node_iface
Interface for XML nodes used by libcroco.
static char const * get_local_name(CRXMLNodePtr n)
@ ELEMENT_NODE
Regular element node, e.g. <group />.
static CRXMLNodePtr get_prev(CRXMLNodePtr cn)
static gboolean is_element_node(CRXMLNodePtr n)
Helper class to stream background task notifications as a series of messages.