f := FileStream fileNamed: 'MyXml.xml'. "opening a stream" doc := XMLDOMParser parseDocumentFrom: f. f close.
xmlUser := (doc elements) at: 1. "now you have the entire user data" "read the name" elmt := xmlUser firstTagNamed: #name. userName := elmt contentString.