I'm having the same problem with either of the above functions. I'm using them to get a response from a remote server. The server is returning XML, but because of the content-type header the return value is coming back as binary. I'm treating this as XML via the format as xml option, as documented. xdmp:describe says that the relevant part of the return value (i.e., not the remote server's response) is a document, and that's the part I'm dealing with.
However, XPATH expressions that name elements don't work on that part of the return value for these functions. For example, I can't get at element foo directly; I have to use positional notation, such as $document/child::node()[1]/child::node(). So, what is the problem here, and what (if anything) is the solution? Thanks. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
