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 (***********************************************************************)
17 Time-stamp: <Last modified on 2013-03-10 23:02:12 CET by Kim Nguyen>
20 (** Implementation of qualified names as hashconsed strings *)
22 include Hcons.S with type data = string
23 include Common_sig.Printable with type t := t
26 val of_string : string -> t
27 (** Utility function, equivalent to [make] *)
29 val to_string : t -> string
30 (** Utility function, equivalent to [node] *)
33 (** Special constants, that denote the QName of nodes that are not
34 elements (using the nodeValue property of DOM for such nodes.
38 (** Represents the QName of a document node. Equivalent to
39 [of_string "#document"]
43 (** Represents the QName of a text node. Equivalent to
48 (** Represents the QName of a comment node. Equivalent to
49 [of_string "#comment"]
53 (** Represents the QName of a nil node. Equivalent to
57 val attribute : t -> t
58 (** Adds a prefix character (@) to distinguish the name
62 val processing_instruction : t -> t
63 (** Adds a prefix character (?) to distinguish the name
67 val remove_prefix : t -> t
68 (** Removes the prefix of the qname given as argument. Does not
69 do anything if there is no prefix.