libdom
|
#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dom/dom.h>
#include <dom/walk.h>
#include <dom/bindings/hubbub/parser.h>
Functions | |
dom_document * | create_doc_dom_from_file (char *file) |
bool | dump_dom_element_attribute (dom_node *node, char *attribute) |
bool | dump_dom_element (dom_node *node, int depth, bool close) |
enum dom_walk_cmd | dump_dom_structure__cb (enum dom_walk_stage stage, dom_node_type type, dom_node *node, void *pw) |
bool | dump_dom_structure (dom_node *node, int depth) |
void | sd__fini_lwc_callback (lwc_string *str, void *pw) |
int | main (int argc, char **argv) |
dom_document * create_doc_dom_from_file | ( | char * | file | ) |
Generate a LibDOM document DOM from an HTML file
file | The file path |
bool dump_dom_element | ( | dom_node * | node, |
int | depth, | ||
bool | close ) |
Print a line in a DOM structure dump for an element
node | The node to dump |
depth | The node's depth |
bool dump_dom_element_attribute | ( | dom_node * | node, |
char * | attribute ) |
Dump attribute/value for an element node
node | The element node to dump attribute details for |
attribute | The attribute to dump |
bool dump_dom_structure | ( | dom_node * | node, |
int | depth ) |
Walk though a DOM (sub)tree, in depth first order, printing DOM structure.
node | The root node to start from |
depth | The depth of 'node' in the (sub)tree |
enum dom_walk_cmd dump_dom_structure__cb | ( | enum dom_walk_stage | stage, |
dom_node_type | type, | ||
dom_node * | node, | ||
void * | pw ) |
Structure dump callback for DOM walker.
int main | ( | int | argc, |
char ** | argv ) |
Main entry point from OS.
void sd__fini_lwc_callback | ( | lwc_string * | str, |
void * | pw ) |