spring-framework / org.springframework.util.xml / StaxUtils / createXMLReader

createXMLReader

open static fun createXMLReader(streamReader: XMLStreamReader): XMLReader

Create a SAX XMLReader that reads from the given StAX XMLStreamReader.

Parameters

streamReader - the StAX stream reader

Return
a XMLReader reading from the streamWriter

open static fun createXMLReader(eventReader: XMLEventReader): XMLReader

Create a SAX XMLReader that reads from the given StAX XMLEventReader.

Parameters

eventReader - the StAX event reader

Return
a XMLReader reading from the eventWriter