' ------------------------------------------------------------------------ 'XMLPARSER methods '#handle ELEMENTCOUNT() - Return the number of child XML elements '#handle KEY$() - Return the key as a string from an XML expression like value '#handle VALUE$() - Return the value as a string from an XML expression like value '#handle VALUEFORKEY$(keyExpr$) - Return the value for the specified tag key in keyExpr$ '#handle #ELEMENT(n) - Return the nth child-element XML element '#handle #ELEMENT(nameExpr$) - Return the child-element XML element named by nameExpr$ '#handle ATTRIBCOUNT() - Return a count of attribute pairs; has two pairs '#handle ATTRIBKEY$(n) - Return the key string of the nth attribute '#handle ATTRIBVALUE$(n) - Return the value string of the nth attribute '#handle ATTRIBVALUE$(n$) - Return the value string of the attribute with the key n$, or an empty string if it doesn't exist. '#handle ISNULL() - Returns zero (or false) '#handle DEBUG$() - Returns the string "Xmlparser" ' ------------------------------------------------------------------------ ' The xml string xml$ = " " ' Creates the xml handler, using the string xmlparser #spies, xml$ ' Uses elementCount() to know how many elements are in betweeb ... for count = 1 to #spies elementCount() ' Uses "count" to work through the elements, and assigns the element to the ' handle "#spy" #spy = #spies #element(count) ' Prints the value, or inner text, of "#spy": Sam, Clover, & Alex print count;" ";#spy value$();" ->";#spy ATTRIBVALUE$(1) next count