for $x in doc('input.xml')//li return $x/text()
Once again, I'm not sure what you did here, as I always get the DB result…
------------------------Output with DB---------------------- Example 1Example 2Example 3
However, the following query will explicitly add a newline after each returned item:
string-join(doc('input.xml')//li, out:nl())
Christian