Not sure how your xml was escaped, but this-

<root>{xdmp:quote("&lt;SYMB&gt;T&lt;/SYMB&gt; test")}</root>

gives me <root>
<SYMB>T</SYMB> test
</root>


What about something like-

let $phonesymbol := "<SYMB>T</SYMB>"
let $full-string :=
  fn:concat($phonesymbol," 03 22 24 08 49 - 14h-18h - closed")
return
  <root>
    {$full-string}
  </root>




On Wed, May 15, 2013 at 11:34 PM, sini narayanan <[email protected]>wrote:

> I need this to be inserted as a value of a node.
>
> for example:
> <root>France - <SYMB> T </ SYMB>  03 22 24 08 49 - 14h-18h - closed.
> </root>
>
> Thanks,
> Sini
>
>
> On Thu, May 16, 2013 at 10:56 AM, Tim <[email protected]> wrote:
>
>> Are you trying to insert the phone symbol as a node or as a string in a
>> document where the content is mixed?****
>>
>> ** **
>>
>> Can you provide a better example of the xml file and how you want this to
>> fit in it?****
>>
>> ** **
>>
>> *From:* [email protected] [mailto:
>> [email protected]] *On Behalf Of *sini narayanan
>> *Sent:* Thursday, May 16, 2013 1:19 AM
>> *To:* MarkLogic Developer Discussion
>> *Subject:* Re: [MarkLogic Dev General] string-join output not as expected
>> ****
>>
>> ** **
>>
>> Hi Tim,****
>>
>> ** **
>>
>> I get the output as &lt;SYMB&gt;T&lt;/SYMB&gt; test****
>>
>> ** **
>>
>> Is it not possible to get it as <SYMB>T</SYMB> test ?****
>>
>> ** **
>>
>> I'm inserting this values in an xml file.****
>>
>> ** **
>>
>> Thanks,****
>>
>> Sini****
>>
>> ** **
>>
>> On Thu, May 16, 2013 at 10:21 AM, Tim <[email protected]> wrote:****
>>
>> First of all your symbol needs to be a string and not a node.  Secondly
>> you need to use the correct syntax for string-join:****
>>
>> * *****
>>
>> *let $phonesymbol* := "<SYMB>T</SYMB>"****
>>
>> *return **fn:string-join*((*$phonesymbol*, "test"), " ")****
>>
>> Tim  Meagher****
>>
>>  ****
>>
>> *From:* [email protected] [mailto:
>> [email protected]] *On Behalf Of *sini narayanan
>> *Sent:* Thursday, May 16, 2013 12:43 AM
>> *To:* MarkLogic Developer Discussion
>> *Subject:* [MarkLogic Dev General] string-join output not as expected****
>>
>>  ****
>>
>> Hi,****
>>
>>  ****
>>
>> I have the following code****
>>
>>  ****
>>
>> let $phonesymbol       := <SYMB>T</SYMB>****
>>
>> return****
>>
>> $phonesymbol****
>>
>>  ****
>>
>> output : <SYMB>T</SYMB>****
>>
>>  ****
>>
>> let $phonesymbol       := <SYMB>T</SYMB>****
>>
>> return****
>>
>> fn:string-join($phonesymbol || " " || "test")****
>>
>>  ****
>>
>> output : T test****
>>
>>  ****
>>
>> How do I modify this to get the output as "<SYMB>T</SYMB> text"****
>>
>>  ****
>>
>> Thanks,****
>>
>> Sini****
>>
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general****
>>
>> ** **
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
> _______________________________________________
> 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