7 Jun
2012
7 Jun
'12
5:48 p.m.
On Thu, Jun 7, 2012 at 11:11 AM, Christian Grün <christian.gruen@gmail.com> wrote:
Okay, I thought that this error came from XQuery. I did not notice before that XQuery can operate on invalid XML document.
A minor note: XQuery definitely requires well-formed XML as input, but the http:send-request() function generates two results: the first one represents the XML response element, the second one represents the actual result – which is the reason why you need to explicitly choose the second item via "[2]".
Does well-formed XML can be invalid XML? I am confused. If XQuery requires well-formed (or valid) XML, how can it deals with the invalid XML result of http:send-request?