Types
Parse file containing an XML document. This functions uses a default continuation function to read the file in blocks.
A SAX parser for XML that sends the events through a callback interface. SAX is the Simple API for XML, originally a Java-only API. SAX was the first widely adopted API for XML in Java, and is a de facto standard where there are versions for several programming language environments other than Java.
Options used to customize the behaviour of the parser. Possible options are:
The SAX events that are sent to the user via the callback.
Parse file containing an XML document. This functions uses a default continuation function to read the file in blocks.
Parse a stream containing an XML document.
The callback interface is based on that the user sends a fun with the correct signature to the parser.
This function is called whenever the parser runs out of input data. If the function can't get hold of more input an empty list or binary (depends on start input in stream/2) is returned. Other types of errors is handled through exceptions. Use throw/1 to send the following tuple {Tag = atom(), Reason = string()} if the continuation function encounters a fatal error. Tag is an atom that identifies the functional entity that sends the exception and Reason is a string that describes the problem.
This function is called for every event sent by the parser. The error handling is done through exceptions. Use throw/1 to send the following tuple {Tag = atom(), Reason = string()} if the application encounters a fatal error. Tag is an atom that identifies the functional entity that sends the exception and Reason is a string that describes the problem.