Hi Nigel, I think the problem is that Element, Text and EndElement are not instance members and therefore cannot be accessed via the instance nodetype. Try something like:
perform until (reader::EOF)
invoke reader::Read()
Evaluate reader::NodeType
When type XmlNodeType::Element
continue
When type XmlNodeType::Text
continue
When type XmlNodeType::EndElement
continue
When Other
continue
End-Evaluate
end-perform
Note also that EOF is a property on XmlTextReader and, as such, should not be accessed using parentheses. Later versions of the compiler will produce an error in this case.