How it works XMLParser?

Godot Version

3.5.1

Question

Hi,
has anyone knows how godot’s XMLParses works?
how its parsing xml?
how it knows where tag starts, where tag ends, where is data?
Can someone explain to me?
Or can someone show me to code of it?
Thanks :smiley:

It works like any other XML parser. It reads the XML stream and translates it into a dictionary with the same structure and values.

thanks @Efi but asked about technical details of it.
Wich way it uses? regex maybe?
And from where I can get code of it?
(I mean engine code about this)

You can see the full sources of Godot Engine in github. Here’s the XMLParser source:

thanks for it!