Go to the first, previous, next, last section, table of contents.


The Xpath_light module

open Xpath_tree
module
 type DATA =
    sig
      type node
      type document =
	  {
	    doc_position : int;  (* to handle cross-doc ordering *)
	    id_table : (string, node) Hashtbl.t;
	  }

      val node_expanded_name : node -> Xpath_names.expanded_name
      val node_value : node -> string
      val node_type : node -> node_type
      val node_parent : node -> node option
      val node_following_sibling : node -> node option
      val node_preceding_sibling : node -> node option
      val node_children : node -> node list
      val node_attributes : node -> node list
      val node_namespaces : node -> node list
      val document_order : node -> node -> int
      val unique_id : node -> string -> node

optional accesors

      val node_root : (node -> node) option
      val node_name : (node -> string) option
      val node_lang : (node -> string option) option

specifics

      type ext

      val node_position : node -> int
      val node_document : node -> document
      val node_ext : node -> ext

      val root_node : ext -> int -> document -> node
      val element_node :
        ext ->
        string ->
	namespaces:(ext * int) Xpath_names.context ->
        attributes:((ext * int) * string * string) list -> 
        int -> document -> node
      val attribute_node : (ext * int) * string * string -> node -> node
      val namespace_node : (ext * int) * string * string -> node -> node
      val pi_node : ext -> string -> string -> int -> document -> node
      val comment_node : ext -> string -> int -> document -> node
      val text_node : ext -> string -> int -> document -> node
      val set_children : node -> node list -> unit
    end
module Data (Ext : sig
 type t end) : (DATA with
 type ext = Ext.t)


Go to the first, previous, next, last section, table of contents.