(** An Xml node is either
[Element (tag-name, attributes, children)] or [PCData text] *) type xml = Xml_datatype.xml
(** Abstract type for an Xml parser. *) type t
(** {6:exc Xml Exceptions} *)
(** Several exceptions can be raised when parsing an Xml document : {ul {li{!Xml.Error}israisedwhenanxmlparsingerroroccurs.the {!Xml.error_msg}tellsyouwhicherroroccurredduringparsing andthe{!Xml.error_pos}canbeusedtoretrievethedocument locationwheretheerroroccurredat.} {li{!Xml.File_not_found}israisedwhenanerroroccurredwhile openingafilewiththe{!Xml.parse_file}function.} }
*)
(** Get a full error message from an Xml error. *) val error : error -> string
(** Get the Xml error message as a string. *) val error_msg : error_msg -> string
(** Get the line the error occurred at. *) val line : error_pos -> int
(** Get the relative character range (in current line) the error occurred at.*) val range : error_pos -> int * int
(** Get the absolute character range the error occurred at. *) val abs_range : error_pos -> int * int
val pos : Lexing.lexbuf -> error_pos
(** Several kind of resources can contain Xml documents. *) type source =
| SChannel of in_channel
| SString ofstring
| SLexbuf of Lexing.lexbuf
(** This function returns a new parser with default options. *) val make : source -> t
(** When a Xml document is parsed, the parser may check that the end of the documentisreached,soforexampleparsing["<A/><B/>"]willfailinstead ofreturningonlytheAelement.Youcanturnonthischeckbysetting [check_eof]to[true]{i(bydefault,check_eofisfalse,unlike
in the original Xmllight)}. *) val check_eof : t -> bool -> unit
(** Once the parser is configured, you can run the parser on a any kind ofxmldocumentsourcetoparseitscontentsintoanXmldatastructure.
When [canonicalize] is set, the parser tries to remove blank PCDATA elements. *) val parse : ?canonicalize:bool -> t -> xml
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.