Chamo.Xml
val string_of_xml : ?decl:bool -> t -> string
Get a string to represent the given xml tree. Optional argument decl
: when set to false
, do not output xml heading declaration. Default is true
.
val xml_of_string : ?strip:bool -> string -> t
Parse a string to build a XML tree. Optional argument strip
can be used to strip blanks (see Xmlm
documentation for details). Raises Failure
in case of error.
val read_xml_file : ?strip:bool -> string -> (t -> 'a) -> 'a
read_xml_file file f
reads the file to get an xml tree and applies f
on the xml tree.