If I remember correctly, I had this with payload posted to a service
endpoint. I want to say I added

let $xml := xdmp:unquote(xdmp:get-request-body(),"",("repair-full"))/node()

to get around the problem.



On Oct 3, 2012 7:06 AM, "Mihir Das" <[email protected]> wrote:

>
> Hi,
>
> We get mention below error while uploading a XML to ML server. The strange
> thing about issue is it fails when uploaded as a big batch but not as a
> small batch. The XML looks good with proper tags.
>
> Error::
> <error:error xsi:schemaLocation="http://marklogic.com/xdmp/errorerror.xsd"; 
> xmlns:error="
> http://marklogic.com/xdmp/error"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
> <error:code>XDMP-DOCUNENDTAG</error:code>
> <error:name/>
> <error:xquery-version>1.0-ml</error:xquery-version>
> <error:message>Unexpected end tag</error:message>
> <error:format-string>XDMP-DOCUNENDTAG: xdmp:get-request-body("xml") --
> Unexpected end tag &lt;/tr&gt; at  line 1</error:format-string>
> <error:retryable>false</error:retryable>
> <error:expr>xdmp:get-request-body("xml")</error:expr>
> <error:data>
>   <error:datum>&lt;/tr&gt;</error:datum>
>   <error:datum/>
>   <error:datum>1</error:datum>
> </error:data>
> <error:stack>
>
> Any help will be highly appreciated!
>
> Thanks,
> Mihir
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to