\ Load the XML text into the var 'x': quote * * xml:parse var, x \ print only xml nodes which have a tag of 'Student' and whose attributes are not empty : .xml \ xml -- xml:tag@ "Student" s:cmp if drop ;; then xml:attrs null? if drop ;; then "Name" m:@ . cr drop ; \ Iterate over the XML document in the var 'x' x @ ' .xml xml:each bye