createEvent

abstract fun createEvent(reader: XmlReader): XmlEvent(source)

Create an XmlEvent corresponding to the event type. The parameters are taken from the reader. The reader is expected to just have read the event with this type.