parse

context(logger: Logger)
fun parse(content: String, fileType: FileType): XmlRootNode(source)

Parses the given XML content into an XmlRootNode using the appropriate parser for the given file type.

Return

An XmlRootNode representing the parsed XML content.

Parameters

content

The XML content to parse.

fileType

The type of the XML file.

Throws

If no parser is found for the given file type.