Hi Sai,

What is the code of the receive_repost?

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens sai shanker
Verzonden: maandag 11 juli 2011 18:12
Aan: General MarkLogic Developer Discussion
Onderwerp: {Spam?} Re: [MarkLogic Dev General] post xml with html character 
entity

Hello Gert,

the code that i use to repost is --

xdmp:http-post($url,
      <options xmlns='xdmp:http'>
      <headers>
      <Content-Type>application/x-www-form-urlencoded</Content-Type>
        <Content-Length>{$len}</Content-Length>
      </headers>
      <data>{$inputxml}</data>
    </options> )

i do a xdmp:unquote and xdmp:quote before i repost.
I get the error even if i don't use xdmp:unquote and xdmp:quote .

Thanks,
Sai.




--- On Mon, 7/11/11, Geert Josten <[email protected]> wrote:

From: Geert Josten <[email protected]>
Subject: Re: [MarkLogic Dev General] post xml with html character entity
To: "General MarkLogic Developer Discussion" <[email protected]>
Date: Monday, July 11, 2011, 11:53 AM

Hi Sai,



Can you show the code you use to repost the XML. It sounds like you need to 
escape your xml somewhere, but showing your code helps us to find out where 
best..



Kind regards,

Geert



Van: [email protected] 
[mailto:[email protected]] Namens sai shanker
Verzonden: maandag 11 juli 2011 17:51
Aan: General MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] post xml with html character entity



Hello Lee,

I repost the xml to a xquery module.

at the receiving end i am trying to unquote the xml that i just received and i 
get the following error-



XDMP-DOCUNEOF: xdmp:unquote("<myelement>AT ") -- Unexpected end of file at line 
1 (document starting at line 1)

in /receive_repost.xqy, on line 6 [1.0-ml]

$doc = "<myelement>AT "
$log = ()
$req-field-names = ("inputxml", "amp;#38; T</myelement>")



It seems like my input xml is broken down  into 2 parts -



first part - "<myelement>AT "

second part -  "amp;#38; T</myelement>"





Thanks,

Sai.











--- On Mon, 7/11/11, Lee, David 
<[email protected]<http://us.mc1217.mail.yahoo.com/mc/[email protected]>>
 wrote:

From: Lee, David 
<[email protected]<http://us.mc1217.mail.yahoo.com/mc/[email protected]>>
Subject: Re: [MarkLogic Dev General] post xml with html character entity
To: "General MarkLogic Developer Discussion" 
<[email protected]<http://us.mc1217.mail.yahoo.com/mc/[email protected]>>
Date: Monday, July 11, 2011, 11:23 AM

Could you elaborate on what the problem is ?
What results are you seeing and what are you expecting ?





----------------------------------------

David A. Lee

Senior Principal Software Engineer

Epocrates, Inc.

[email protected]<http://us.mc1217.mail.yahoo.com/mc/[email protected]>

812-482-5224



From: 
[email protected]<http://us.mc1217.mail.yahoo.com/mc/[email protected]>
 
[mailto:[email protected]]<http://us.mc1217.mail.yahoo.com/mc/compose?to=%5bmailto:[email protected]%5d>
 On Behalf Of sai shanker
Sent: Monday, July 11, 2011 11:18 AM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] post xml with html character entity



Hi,

I have an xquery module that receives and xml from my supplier and needs to 
repost that xml to a different server.



The xml has a html entity reference for "&" that is causing a problem once i 
repost the xml.



<myelement>AT &#38; T</myelement>



I am using xdmp:http-post.



Can you please help me out?



Thanks,
Sai.






-----Inline Attachment Follows-----

_______________________________________________
General mailing list
[email protected]<http://us.mc1217.mail.yahoo.com/mc/[email protected]>
http://developer.marklogic.com/mailman/listinfo/general




-----Inline Attachment Follows-----
_______________________________________________
General mailing list
[email protected]<http://us.mc1217.mail.yahoo.com/mc/[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