Returning and Displaying result from JS subFunction on WordPress page
I have a pair of nested functions to parse an XML document. The subfunction does the heavy lifting and creates the text string that I'd like to display on a WP page. The variable I'd like to pass is out of scope for the document.write() function and I can't figure out how to pass the result back to the main calling function. Any help would be appreciated. Please tread lightly - I'm new to most of this.