XQuery (and XML) vs LISP



If XML is a syntactic representation of a typed tree structure and
XQuery is a language that can process and construct such structures,
how does the combination compare to LISP (with type information)? It
seems like
XML <=> S-Expressions (with types)
XQuery <=> LISP functions
Am I missing something here?
Thanks
Sivaramakrishnan

.