table of contents
other versions
- jessie 1:17.3-dfsg-4+deb8u2
- jessie-backports 1:19.2.1+dfsg-2+deb9u1~bpo8+1
- stretch 1:19.2.1+dfsg-2+deb9u2
- testing 1:21.2.5+dfsg-1
- unstable 1:21.2.6+dfsg-1
- experimental 1:22.0~rc1+dfsg-1
xmerl_eventp(3erl) | Erlang Module Definition | xmerl_eventp(3erl) |
NAME¶
xmerl_eventp - Simple event-based front-ends to xmerl_scan for processingof XML documents in streams and for parsing in SAX style.
DESCRIPTION¶
Simple event-based front-ends to xmerl_scan for processing of XML documents in streams and for parsing in SAX style. Each contain more elaborate settings of xmerl_scan that makes usage of the customization functions.EXPORTS¶
file_sax(Fname::string(), CallBackModule::atom(), UserState, Options::option_list()) -> NewUserState
Parse file containing an XML document, SAX style. Wrapper for a call to the XML
parser xmerl_scan with a hook_fun for using xmerl export
functionality directly after an entity is parsed.
stream(Fname::string(), Options::option_list()) -> xmlElement()
Parse file containing an XML document as a stream, DOM style. Wrapper for a call
to the XML parser xmerl_scan with a continuation_fun for
handling streams of XML data. Note that the continuation_fun,
acc_fun, fetch_fun, rules and close_fun options
cannot be user defined using this parser.
stream_sax(Fname, CallBack::CallBackModule, UserState, Options) ->
xmlElement()
Types:
Fname = string()
CallBackModule = atom()
Options = option_list()
Parse file containing an XML document as a stream, SAX style. Wrapper for a call
to the XML parser xmerl_scan with a continuation_fun for
handling streams of XML data. Note that the continuation_fun,
acc_fun, fetch_fun, rules, hook_fun,
close_fun and user_state options cannot be user defined using
this parser.
string_sax(String::list(), CallBackModule::atom(), UserState,
Options::option_list()) -> xmlElement()
Parse file containing an XML document, SAX style. Wrapper for a call to the XML
parser xmerl_scan with a hook_fun for using xmerl export
functionality directly after an entity is parsed.
AUTHORS¶
<>xmerl 1.3.7 |