Using %XML.TextReader 4
As it reads each node in the document model, the example...
If (reader.NodeType = "element") {
Write reader.Name,!
}
...checks the type of the node. If the node is an element, then it writes its name to the current device.