
Last chance! 50% off unlimited learning
Sale ends in
This is a function that returns a closure instance
containing the default handlers for use with
xmlEventParse
for parsing XML documents
via the SAX-style parsing.
xmlEventHandler()
The return value is a list of functions which are used as callbacks by the internal XML parser when it encounters certain XML elements/structures. These include items such as the start of an element, end of an element, processing instruction, text node, comment, entity references and definitions, etc.
Duncan Temple Lang
These handlers simply build up the DOM tree and thus
perform the same job as xmlTreeParse
.
It is here more as an example, reference and a base
that users can extend.
https://www.w3.org/XML//, http://www.jclark.com/xml/, https://www.omegahat.net
xmlEventParse
xmlTreeParse
xmlEventParse(system.file("exampleData", "mtcars.xml", package="XML"),
handlers=xmlEventHandler())
Run the code above in your browser using DataLab