Hello again,
Now I have studied and tested and got the answer:
This was what I was searching for - the BaseName.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