Well, the template variables are replaced on the server before an html page is sent to the user's browser, so if what you want to do is to create a page that lists some users, you don't need to use ajax. You can build a string variable in php code, then register that to your template.
If you do have some reason to get the list using an ajax call from an html page (to avoid reloading the html page, for example), then what you need to do is process the returned xml using javascript, like is done in the example you linked to.
I'm still not sure which one of these you are trying to do.
|