How to use Special Characters in CONCAT function or another form with Xquer

Hello everyone
I'm using PS3 OEPE within message flow (proxy)and I'm using Xquery.
I'm using the CONCAT function, but this does not allow me to concatenate special characters not allowed, for example:
I want to concatenate these strings:
String1 = “<get-person><id-person&;gt;”
String2 = “123”
String3 = “</id-person&;gt; </get-person>”
I want to represent characters regex. It means no XML characters
Someone knows some way, any function that allows me to concatenate in OSB these values with Xquery?
Edited by: chromosoma on Sep 5, 2012 5:59 PM

Hi,
It seems to me you're doing things in the most complicated way possible...
Firstly, you should use codepoints-to-string not the reverse... Secondly, the function work with decimals, not hexa
http://www.xqueryfunctions.com/xq/fn_codepoints-to-string.html
http://www.xqueryfunctions.com/xq/fn_string-to-codepoints.html
This works...
concat(codepoints-to-string(38),'lt',codepoints-to-string(59),'get-person')But this also works... Note that I've inserted a space between the & and the lt so the forum formatting can show it...
let
$String1 := "& lt;get-person& gt;& lt;id-person& gt;",
$String2 := "123",
$String3 := "& lt;/id-person& gt;& lt;/get-person& gt;"
return
     concat($String1,$String2,$String3)And, finally this also works... So what's the reason for escaping < and > with &lt and > and why codepoints?
let
$String1 := "<get-person><id-person>",
$String2 := "123",
$String3 := "</id-person></get-person>"
return
     concat($String1,$String2,$String3)Cheers,
Vlad

Similar Messages

  • How to use special characters in Report Builder

    Hi everyone,
    I wonder if you guys can help me. I'm trying to change our Invoice hearders from English to Portuguese. Eg, I've changed this English heading
    ("FOR ACCOUNT QUERIES CONTACT") to this Portuguese heading ("PARA CONSULTAS DE CONTA CONTACTE"). So when I'm done, my entire invoice will be in Portuguese. This works fine, until I get special characters in some of the Portuguese translations. I can copy and paste the translations with special characters into Report Builder. But when I print the invoice in Oracle Apps (with a PDF output), the special characters get replaced with a "?".
    Here's an example:
    < "Line No" should read "Linha nº" but it prints out as "Linha n?" > Does anybother know how I can resolve this? I'm using Report Builder: 10.1.2.3.0 on Oracle Apps: 11.5.10.2 and RDBMS : 10.2.0.4.0
    Thank you in advance

    Hi,
    You need to have Portuguese font installed on your machine, if you are running the report from your machine or else if you are running the same from report server then the font has to be there on the server font dir.

  • How to use special characters in regular expression

    HI all, I am new to regular expression.
    Can any one please tell me the regular expression for characters which are used in regular expression like " [({. tetc.Is there any particular expression to prefix before using these characters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Expression:
    < td .*? bgcolor = \" ( [^ \" ] +) \" \\s* .*? > ( .+? ) </td>
    It will search for expression starting with <td ,
    .*? means any characters zero or more than one,
    then it will find bgcolor = , then literal \"... \(any char) is that specific char
    [ ^ \" ] any character but not literal \",this means there has to be something between ".... " if empty then wont match ,+ is 1 or more times
    Then again literal \ " , after that \\s* means zero or more num of spaces,
    then again , .*? means any characters zero or more than one,
    it will search for literal > , again any chars . * ?
    Finally </td> will be searched.....!!
    So all expressions having this particular structure will be
    matched.
    Output :
    <td align="left" valign="top" bgcolor="ffffff" width="177">bla bla bla</td>

  • How to use special characters in rtf template?

    Hi,
    We are using .rtf template to print an invoice in pdf format.
    Now the requirement to put special character under footer section as below.
    "New York • London • Houston • Berlin • Vienna • Sydney • São Paulo • Singapore "
    I use same in rtf template but report output showing as below
    "New York ? London ? Houston ? Berlin ? Vienna ? Sydney ? São Paulo ? Singapore " .
    I tried with placeholder column but no luck.
    Can anyone help me?
    Thanks in advance!!

    hi,
    find in this link
    Count Number of Groups

  • How can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • How to write special characters in PDF using iText

    How to write special characters encoded with UTF-8 in PDF using iText.
    Regards,
    Pandharinath.

    I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
    So can you describe your problem? That question doesn't make sense.

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • How to insert special characters in pdf comments

    Now, we are ready to go "no paper" workflow, and so mark anything on pdf file, but we cannot insert most of special characters in PDF comments. Same as here, and the xml entity is "&PSgr;", "how to archive it?

    >what the Character Map is?
    You don't know how to use Google?
    Character map is a standard part of Windows for using special
    characters with any program.
    In Windows XP, Start > All Programs > Accessories > System Tools >
    Character Map.
    Aandi Inston

  • How to remove special characters while typing data in edit cell in datagrid in flex4

    Hi Friends,
    I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
    Thanks,
    Anderson.

    Removes any characters from
    @myString that do not meet the
    provided criteria.
    CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
    RETURNS varchar(500) AS
    BEGIN
    While @myString like '%[^' + @validChars + ']%'
    Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
    Return @myString
    END
    Go
    Declare @testStr varchar(1000),
    @i int
    Set @i = 1
    while @i < 255
    Select
    @TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
    @i = @i + 1
    Select @TestStr
    Select dbo.GetCharacters(@TestStr,'a-z')
    Select dbo.GetCharacters(@TestStr,'0-9')
    Select dbo.GetCharacters(@TestStr,'0-9a-z')
    Select dbo.GetCharacters(@TestStr,'02468bferlki')
    perfect soluction

  • How to save Special Characters in oracle?

    Is there any way to enter special characters such as ºC ? i am using J2EE and Oracle 9 i.
    When i try to enter 2ºC after updating the datbase it is converted to 2ºC when it is displayed in HTML. All special characters are prefixed with Â. Pls suggest any way to use special characters with oracle ..

    This has nothing do to with NLS_LANGUAGE. In general, character set processing depends on NLS_LANG setting (which is an OS setting and not a instance initialization parameter) and database character set. To understand NLS_LANG see OTN NLS_LANG FAQ http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm.
    However, I think that JDBC is an exception and does not use the character set defined by NLS_LANG. See last answer in following discussion:
    Re: When is NLS_LANG used ?

  • How to display special characters in Script...

    hi all,
    Can any one tell me how to display special characters in script...
    how to write in text element
    thanks in advance,
    prashant

    Hi Prashant ,
      What special characters would you like to include .
    There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert  , here you can find a lot of characters/symbols that can be included .
    Regards,
    Arun

  • How to use database look up table function in xsl mapping

    Can anybody tell me how to use database look up table function while mapping xsl between 2 nodes.
    I have an XML file coming in and depending on one of XML elements we need to decide which further path to take. But, using this XML element, we need to query database table, get metadata and accordingly take appropriate path. I have written lookup function which returns metadata value.
    Now, the issue is how do I pass the XML element valu as input to look up function? When I tried to drag it to the input node of lookup function, it throws an error like "Maximum number of parameters exceeded"
    Thanks,

    If the lookup table is always going to remain the same (e.g. a character generator or something similar) you can place the values in a 2D array constant on your diagram, with the input value as one column, the equivalent as the other. When you need to perform the lookup you use an index array to return all the values in the "input column", search it using "search 1D array" and use the resulting index number to index the other column's data. If the values may change, then it would probably be best to load an array control with your equivalent values from a file.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Use special characters in a DTD

    Hello,
    I created a DTD amd want to use some special characters in this DTD. E.G. I want to define:
    <!ATTLIST element value (val1|val 2|<val3>|%val4) #REQUIRED>
    I tried the following but the parser does not accept without errors:
    <!ATTLIST element value (val1|val&#xxx;2|&#yyy;val3&#zzz;....
    Of course I replaced the xxx, yyy and zzz with the unicode number of the special sign.
    So what do I do wrong? Or is it in general not possible to use special characters ?
    Thank you very much,
    Findus

    Hi,
    one thing I did which does not work is:
    <!ATTLIST element values (&|<|val1) #REQUIRED>
    The XML parser (XMLSpy) alway requires me for entering a '%' which is as far as I know only used for parameter entities. But & and the rest are general entities, aren't they ??
    I played arround a little bit and found a solution which still does not completly solve my problem: In order to use special characters I declare parameter entities:
    <!ENTITY percent "&#37;">
    <!ENTITY lower "&#60;">
    <!ATTLIST element values (%lower;|val1|%percent;) #REQUIRED>
    This works so far so good but if I want to embed the special characters (which is what I need to do!) the parser still gives me errors:
    <!ATTLIST element values (text%lower;moreText|val1|%percent;) #REQUIRED>
    I would be really glad if anybody could test this on his own and post me about the results. For any other kind of avice I'm very thankful, too.
    Thank you very much,
    Findus

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • Using special characters (Spanish characters) in Activities name

    Hi everyone,
    ?:| Does anyone knows if I need to do any extra configuration in my Operating System/Data Base if I'm using special characters (accents) in activities/transitions name. Is there any problem using these type of characters?
    Thanks a lot.
    Edited by varriaga at 01/04/2007 2:17 PM

    in ALBPM 5.7 you don't need any specific setup to use spanish characters, since we store all information as NVARCHARS.
    In Studio, we store projects files in UTF-8, so no problem either.
    MAriano
    PS: you are just asking or you do have a problem? if you do, contact support and describe your problem.
    MAriano Benitez
    AquaLogic BPM 5.7 SP1 is now available!

Maybe you are looking for

  • MSI 880GM-e35 Wakeing up from sleep by USB mouse or USB keyboard

    I have two 880gm-e35 boards that will not wake up from sleep by Keyboard or mouse. (S3) sleep condition. -They wake up by tapping the power button..ok. On the E-35 boards If I set the (S1) Sleep condition where the fans stay on and power light does n

  • How do I print the contrast between "filled" text and its surrounding "box"?

    Hi, Apologies in advance for any ambiguity or confusion . . . I am a self-taught Photoshop user who has come upon a problem to which I cannot find an answer, despite searching online for hours . . . When I design a project, it looks beautiful on scre

  • Upgrade from 10.2 to Tiger 10.4.11

    I don't want to upgrade to Leopard. I want Tiger 10.4.11 to run on my PowerBook G4 17inch (running on 10.2)... (This computer is not on line.) Is Tiger 10.4.11 still on the market to purchase? Can I take my PB G4 into an Apple store and have Tiger 10

  • Adapter Module in SOAP Sender Adapter

    Hi All, To Confirm, Is it possible to use Custom Adapter Modules in SOAP Sender Adapter. If so, where exactly custom module has to be placed in communication channel with respect to the standard bean of SOAP Adapter. Thanks in advance. Regards, Sudha

  • Problem in Events (Program)

    Hi, Pls look at the code below. I have created a pushbutton and written a triggering event for that. but then in output if i press the button the event is not triggered and so i dont get output at all. REPORT zexample. *button to be clicked after whi