1 (***********************************************************************)
5 (* Kim Nguyen, LRI UMR8623 *)
6 (* Université Paris-Sud & CNRS *)
8 (* Copyright 2010-2012 Université Paris-Sud and Centre National de la *)
9 (* Recherche Scientifique. All rights reserved. This file is *)
10 (* distributed under the terms of the GNU Lesser General Public *)
11 (* License, with the special exception on linking described in file *)
14 (***********************************************************************)
16 (** Implementation of qualified names as hashconsed strings *)
18 include Hcons.S with type data = string
19 include Common_sig.Printable with type t := t
22 val of_string : string -> t
23 (** Utility function, equivalent to [make] *)
25 val to_string : t -> string
26 (** Utility function, equivalent to [node] *)
29 (** Special constants, that denote the QName of nodes that are not
30 elements (using the nodeValue property of DOM for such nodes.
34 (** Represents the QName of a document node. Equivalent to
35 [of_string "#document"]
39 (** Represents the QName of a text node. Equivalent to
44 (** Represents the QName of a comment node. Equivalent to
45 [of_string "#comment"]
49 (** Represents the QName of a nil node. Equivalent to
53 val attribute : t -> t
54 (** Adds a prefix character (@) to distinguish the name
58 val processing_instruction : t -> t
59 (** Adds a prefix character (?) to distinguish the name
63 val remove_prefix : t -> t
64 (** Removes the prefix of the qname given as argument. Does not
65 do anything if there is no prefix.