Data Fields

node_t Struct Reference

node_t structure More...

#include <roxml-types.h>

Data Fields

unsigned char type
union {
   char *   buf
   FILE *   fil
   void *   src
src
unsigned long pos
unsigned long end
struct node * sibl
struct node * chld
struct node * prnt
struct node * attr
struct node * text
struct node * next
void * priv

Detailed Description

node_t structure

This is the structure for a node. This struct is very little as it only contains offset for node in file and tree links

Definition at line 124 of file roxml-types.h.


Field Documentation

struct node* node_t::attr

ref to attributes

Definition at line 136 of file roxml-types.h.

char* node_t::buf

buffer address

Definition at line 127 of file roxml-types.h.

struct node* node_t::chld

ref to chld

Definition at line 134 of file roxml-types.h.

unsigned long node_t::end

offset of begining of closing node in file

Definition at line 132 of file roxml-types.h.

FILE* node_t::fil

loaded document

Definition at line 128 of file roxml-types.h.

struct node* node_t::next

ref to next (internal use)

Definition at line 138 of file roxml-types.h.

unsigned long node_t::pos

offset of begining of opening node in file

Definition at line 131 of file roxml-types.h.

void* node_t::priv

ref to xpath tok (internal use)

Definition at line 139 of file roxml-types.h.

struct node* node_t::prnt

ref to parent

Definition at line 135 of file roxml-types.h.

struct node* node_t::sibl

ref to brother

Definition at line 133 of file roxml-types.h.

void* node_t::src

xml src address

Definition at line 129 of file roxml-types.h.

union { ... } node_t::src

xml tree source

struct node* node_t::text

ref to content

Definition at line 137 of file roxml-types.h.

unsigned char node_t::type

document or buffer / attribute or value

Definition at line 125 of file roxml-types.h.


The documentation for this struct was generated from the following file: