Hello again,
Now I have studied and tested and got the answer:

Code:
Get DocumentElement of hoXML to hoRootNode  // root-elementet
            Get psBaseName of hoRootNode to sName

            If (sName = "inquiry") Move "INQ" to sFunktion 
            If (sName = "order"  ) Move "ORD" to sFunktion
This was what I was searching for - the BaseName.