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]> wrote:


From: Lee, David <[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: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]
812-482-5224
 
From: [email protected] 
[mailto:[email protected]] 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://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to