module NodeKind =
struct
type t =
- Document | Element | Text | Comment | Attribute | ProcessingInstruction | Node
+ Document | Element | Text | Comment | Attribute
+ | ProcessingInstruction | Node
let to_string =
function
(** [preorder t n] returns the pre-order position of [n] in [t].
[preodrder t (root t) == 0] and [preorder t nil < 0].
*)
+
+ val by_preorder : t -> int -> node
+ (** [by_preorder t i] returns the node with preorder [i]
+ *)
val print_node : Format.formatter -> node -> unit
end