#include <stdbool.h>
#include <dom/core/nodelist.h>
Go to the source code of this file.
|
dom_exception | _dom_nodelist_create (struct dom_document *doc, nodelist_type type, struct dom_node_internal *root, dom_string *tagname, dom_string *namespace, dom_string *localname, struct dom_nodelist **list) |
|
bool | _dom_nodelist_match (struct dom_nodelist *list, nodelist_type type, struct dom_node_internal *root, dom_string *tagname, dom_string *namespace, dom_string *localname) |
|
bool | _dom_nodelist_equal (struct dom_nodelist *l1, struct dom_nodelist *l2) |
|
◆ dom_nodelist_equal
#define dom_nodelist_equal |
( |
| l1, |
|
|
| l2 ) |
Value:
bool _dom_nodelist_equal(struct dom_nodelist *l1, struct dom_nodelist *l2)
Definition nodelist.c:453
◆ nodelist_type
The NodeList type
Enumerator |
---|
DOM_NODELIST_CHILDREN | |
DOM_NODELIST_BY_NAME | |
DOM_NODELIST_BY_NAMESPACE | |
DOM_NODELIST_BY_NAME_CASELESS | |
DOM_NODELIST_BY_NAMESPACE_CASELESS | |
◆ _dom_nodelist_create()
Create a nodelist
- Parameters
-
doc | Owning document |
type | The type of the NodeList |
root | Root node of subtree that list applies to |
tagname | Name of nodes in list (or NULL) |
namespace | Namespace part of nodes in list (or NULL) |
localname | Local part of nodes in list (or NULL) |
list | Pointer to location to receive list |
- Returns
- DOM_NO_ERR on success, DOM_NO_MEM_ERR on memory exhaustion
::root must be a node owned by ::doc
The returned list will already be referenced, so the client need not do so explicitly. The client must unref the list once finished with it.
◆ _dom_nodelist_equal()
Test whether the two NodeList are equal
- Parameters
-
l1 | One list |
l2 | The other list \reutrn true for equal, false otherwise. |
◆ _dom_nodelist_match()
Match a nodelist instance against a set of nodelist creation parameters
- Parameters
-
list | List to match |
type | The type of the NodeList |
root | Root node of subtree that list applies to |
tagname | Name of nodes in list (or NULL) |
namespace | Namespace part of nodes in list (or NULL) |
localname | Local part of nodes in list (or NULL) |
- Returns
- true if list matches, false otherwise