how to get the name of an unknown XML element?

how to get the name of an unknown XML element?

For example, say the XML data is:

<CustomerID>12345</CustomerID>
<Name>Bob Smith</Name>
<Phone>99999</Phone>

But I don't know the exact names of the elements in advance.

How can I extract just the name of each element - i.e. "CustomerID", etc - from the XML?

Anton