When the function returns xml-elements as item() you do not need to parse them. They already are in parsed form.
Just use:
for $Value in $outputFromFunction/Value
(If you call parse-xml on this, it is first converted to a string, i.e. "199950100200050100")