With output formatting issues

DB version: 11.2.0.1.0

I am facing some formatting issues with my request. The details are the following:


Here is the part of XML code that I use:
 
        <settlementInformation id="TD1">
            <settlementInstruction>
                <correspondentInformation>
                    <routingIdsAndExplicitDetails>
                        <routingIds id="INSTRUCTING_PARTY1">
                            <routingId>BICXBICXXXX</routingId>
                            <routingIdScheme>BIC</routingIdScheme>
                        </routingIds>
                        <routingIds id="ORDERING_CUSTOMER1">
                            <routingId>/50F-1-7890123456789012345678901234</routingId>
                            <routingIdScheme>CPI</routingIdScheme>
                        </routingIds>
                        <routingAddress>
                            <streetAddress>
                                <streetLine>1/a-1-56789012345678901234567890123</streetLine>
                                <streetLine>2/b-1-56789012345678901234567890123</streetLine>
                                <streetLine>3/c-1-56789012345678901234567890123</streetLine>
                                <streetLine>4/d-1-56789012345678901234567890123</streetLine>
                            </streetAddress>
                        </routingAddress>
                        <routingSubAccountNumber>/25A-1-7890123456789012345678901234</routingSubAccountNumber>
                        <routingReferenceText>CHQB</routingReferenceText>
                        <routingReferenceText>OTHR</routingReferenceText>
                        <routingReferenceText>INTC</routingReferenceText>
                    </routingIdsAndExplicitDetails>
                </correspondentInformation>
                <intermediaryInformation>
                    <routingIdsAndExplicitDetails>
                        <routingIds>
                            <routingId>BICZBICZYYY</routingId>
                            <routingIdScheme>BIC</routingIdScheme>
                        </routingIds>
                        <routingAccountNumber>A/56A-1-7890123456789012345678901234</routingAccountNumber>
                    </routingIdsAndExplicitDetails>
                    <intermediarySequenceNumber>1</intermediarySequenceNumber>
                </intermediaryInformation>
                <beneficiaryBank>
                    <routingIdsAndExplicitDetails>
                        <routingIds>
                            <routingId>RBOSGB2L</routingId>
                            <routingIdScheme>BIC</routingIdScheme>
                        </routingIds>
                        <routingAccountNumber>A/57A-1-7890123456789012345678901234</routingAccountNumber>
                    </routingIdsAndExplicitDetails>
                </beneficiaryBank>
                <beneficiary>
                    <routingIdsAndExplicitDetails>
                        <routingIds>
                            <routingId>RBOSGB2RTCM</routingId>
                            <routingIdScheme>BIC</routingIdScheme>
                        </routingIds>
                        <routingAccountNumber>59A-1-7890123456789012345678901234</routingAccountNumber>
                        <routingReferenceText>e-1-5678901234567890123456789012345&#xd;
f-1-5678901234567890123456789012345&#xd;
g-1-5678901234567890123456789012345&#xd;
h-1-5678901234567890123456789012345</routingReferenceText>
                    </routingIdsAndExplicitDetails>
                </beneficiary>
                <splitSettlement>
                    <splitSettlementAmount>
                        <currency>USD</currency>
                        <amount>100000000000.0</amount>
                    </splitSettlementAmount>
                    <beneficiary>
                        <routingIdsAndExplicitDetails>
                            <routingIds>
                                <routingId>RBOSGB2RTCM</routingId>
                                <routingIdScheme>BIC</routingIdScheme>
                            </routingIds>
                            <routingAccountNumber>59A-1-7890123456789012345678901234</routingAccountNumber>
                            <routingReferenceText>1.3456789012</routingReferenceText>
                        </routingIdsAndExplicitDetails>
                    </beneficiary>
                </splitSettlement>
                <splitSettlement>
                    <splitSettlementAmount>
                        <currency>EUR</currency>
                        <amount>100000000000.02</amount>
                    </splitSettlementAmount>
                    <beneficiary>
                        <routingIdsAndExplicitDetails>
                            <routingIds>
                                <routingId>RBOSGB2RTCM</routingId>
                                <routingIdScheme>BIC</routingIdScheme>
                            </routingIds>
                            <routingAccountNumber>59A-1-7890123456789012345678901234</routingAccountNumber>
                            <routingReferenceText>1.3456789012</routingReferenceText>
                        </routingIdsAndExplicitDetails>
                    </beneficiary>
                </splitSettlement>
                <senderToReceiverInformation>REGULATORY REPORTING: /BENEFRES/GB//77B-1-123456789012345&#xd;
//77B-1-901234567890123456789012345&#xd;
//77B-1-901234567890123456789012345</senderToReceiverInformation>
                <senderToReceiverInformation>DETAILS OF CHARGES: BEN</senderToReceiverInformation>
            </settlementInstruction>
        </settlementInformation>
Here is a block of the query in the select statement that I use:
 
         ,    XMLTABLE('emml/newTransfer/settlementInformation' PASSING XMLTYPE(gmh.message_xml)) si
         ,    XMLTABLE('settlementInformation' PASSING si.COLUMN_VALUE 
                          COLUMNS settlementInformationId_link1    VARCHAR2(255)  PATH '@id' 
                                , order_street_address             VARCHAR2(1000) PATH 'settlementInstruction/correspondentInformation/routingIdsAndExplicitDetails/routingAddress/streetAddress'
                       ) mt6
Now, the result I get is:
 
1/a-1-567890123456789012345678901232/b-1-567890123456789012345678901233/c-1-567890123456789012345678901234/d-1-56789012345678901234567890123
whereas what I want is (spaces between the different values of streetLine):
 
1/a-1-56789012345678901234567890123 2/b-1-56789012345678901234567890123 3/c-1-56789012345678901234567890123 4/d-1-56789012345678901234567890123
DRM for assistance.

The string-join has not worked for me

What you mean? You get an error, or it just do nothing?

Make sure that you expand the path to the streetLine node:

string-join(settlementInstruction/correspondentInformation/routingIdsAndExplicitDetails/routingAddress/streetAddress/streetLine, " ")

Tags: Database

Similar Questions

  • working with date formatting issue

    Hi all
    I have a simple question, if I let say that I need to select all the lines more older then 7 days I can do:
     
    mdate defined like date;
    select * from table where mdate < sysdate - 7; 
    It's simple and fine wors, even if you move one month in return. It substrucs exactly 7 days keepins even time. I can use trunc (sysdate)-7 if I want to be defined by the time too. Therefore, save enough to use?

    I n ' understand why I see in many places, including the www code as example below which includes series for the conversion of/to_char to_date, is something wrong with the code above, I have little new to Oracle and proably I'm something you wish. Or using INTERVAL, is intended to preserve something, or...
    I understand that the value of both sides of > should be in the same format (present in my case).
     
    select * from table where mdate < to_date( to_char(sysdate, 'dd-mon-yy hh24:mi:ss'), 'dd-mon-yy hh24:mi:ss');
    I'm on Ora g10, probably this example should be used for older versions?

    Thank you
    Trento

    Trento wrote:
    Hi all
    I have a simple question, if I let say that I need to select all the lines more older then 7 days I can do:

    
    mdate defined like date;
    select * from table where mdate < sysdate - 7; 
    

    It's simple and fine, dot it substrucs exactly 7 days keepins even time. I can use trunc (sysdate)-7 if I want to be defined by the time too.

    I n ' understand why I see in many places, including the www code as example below which includes series for the conversion of/to_char to_date, is something wrong with the code above, I have little new to Oracle and proably I'm something you wish. Or using INTERVAL, is intended to preserve something, or...
    I understand that the value of both sides of > should be in the same format (present in my case).

    
    select * from table where mdate < to_date( to_char(sysdate, 'dd-mon-yy hh24:mi:ss'), 'dd-mon-yy hh24:mi:ss');
    

    I'm on Ora g10, probably this example should be used for older versions?

    Thank you
    Trento

    This has nothing to do with the version, well, maybe the version of the coding person :)

    Some people do not understand or have not been taught that a date holds no specific format so they think that this kind of manipulation is necessary, it is not.

    So, the code YOU have is good... the code you are questioning is not (I consider code unnecessarily making conversions 'bad').

  • updating Win 7 32 bit to Win 7 64 bit with output formatting of HARD drive?

    For some reason any my Panasonic Toughbook came with Win 7 Pro 32-bit. The material is prepared according to manufacturer 64-bit. Who could ever think about buying the PC like this (quad CPU, 8 GB of RAM etc) is preloaded with 32-bit? In any case, I talked to people from panasonic, they say, it is not necessary to wipe the HARD drive to upgrade to 64 - bit. and sent the links to the drivers to install and procedures how to. The qUESTIONs ARE! Is it still possible? All programs and apps will work after installation? I'll be able to access the windows after upgrade. If I do a backup of files and settings in 32 bits can restore 64-bit so only the lost data? If not successful can I use same license key 32-bit here to install Win 7 Pro 64 bit. Has it been done before?

    Thank you for all the input

    As the computer was supposed to be provided with 32-bit Windows and 8 GB of RAM their technical knowledge should be considered as somewhat suspect. 32-bit Windows can access up to 3.2 GB (approx.) of RAM, it should be 4 GB, but for technical reasons, it can not, 8 GB would be useless.

    According to the original age of the computer, it only used to be quite true 64 bit software so if a computer has 4 GB of RAM or less, there was little interest in installing Windows x 64. Windows 7 x 64 increases the required minimum memory of 1 GB 2 GB same 4 GB of RAM is questionable, to get an advantage, that it should be more.

    I suspect the specifications of basic material for the system was such that the image of the master has x 32 and nobody at Panasonic said that if they offered an option for 8 GB they needed to provide a revised image.

    Normally OEM software provided as 32-bit or 64-bit, you don't get together in the peloton to the difference in detail so there may be a limitation as to what technique you can install. Then of course there is the problem of knowing where you are going to get the operating system. If the recovery of Panasonic's 32-bit all you have. Unless Panasonic brings that put you with a recovery disc 64-bit, you will need to provide your own license. You obviously have a case if they provided the spec of 8 GB to request a package of them FOC, but I doubt if they will respect.

  • Error in the REST Web Service with the text output Format

    Hi all

    I am referencing a REST web service and can successfully connect to it and retrieve the results with the output XML value Format.

    I don't need the node values, I want to just grab the entire XML string and fill a table with her column.

    When I create a new Rest web service reference, including the text output Format value and then create a form/report to run it, I get the following error when I click on "send":

    ORA-06550: line 1, column 63: PLS-00103: encountered the symbol "end-of-file" when expects it one of the following numbers: (- + new case mod not null to other current County avg exists max min prior sql stddev sum variance execute forall time timestamp interval date fusion pipe)
    Error sending request.

    There is control in the XML characters, but surely, this is handled by the Apex, so I'm not sure what the problem is here.

    Any ideas most welcome.

    Thank you
    Rhodri

    Rhodri:

    Request Express waiting for answer text actually be answer text, delimited by other characters that denotes a new value and a new Recordset. You should leave the response as XML. The XML document will be stored in the column xmltype01 in the collection that you specify. You can then convert this column xmltype01 in a clob, if you like using the. toClobVal().

    Kind regards

    Jason

  • Change default value of output format you 'Keynote 09 '.

    Hi all

    I use Keynote 6.6.2 and I need your help to know how to use the 'Keynote ' 09"as the default output format, without an export each time.

    In my company, I'm the only one with this version of Keynote, if no one else can use my files and allows us to work on the same files really often!

    Thank you for helping me.

    Kind regards

    Nicolas

    The only way to create 09 files from Keynote 6.6.2 is to use file > export > Keynote 09

  • Many web sites does not not with correct format minus 8.0

    Many web sites does not not with correct format minus 8.0 but work fine with IE. At first glance, my internet connection has problems because the text was load but the format and images had problems, but not the internet connection. Example is www.msnbc.com or www.blueovalnews.com

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Output formatting in a sql

    Hello

    I have 4 columns, I need the output format using carriage returns between values and removing the label for nulls, such as only the columns filled with values are displayed:

    Name: emp.first_name

    Medium: emp.middle_name

    Name: emp.last_name

    Address (line 1): emp.ext_contact_addr1

    for example: -.

    If the name is null then output would be

    Middle: Thomas

    Family name: James

    Address (line 1): 10 william st

    If the name is null, then output would be

    First name: Tessa

    Family name: James

    Address (line 1): 10 william st

    etc...

    Please help me.

    Hello

    Here's a way

    SELECT LTRIM (NVL2 (emp.first_name

    , ' Name: '. EMP.first_name

    NULL

    )

    || NVL2 (emp.middle_name

    , CHR (10) | ' Average: ' | EMP.middle_name

    NULL

    )

    || NVL2 (emp.last_name

    , CHR (10) | ' Last name: ' | '. EMP.last_name

    NULL

    )

    || NVL2 (emp.ext_contact_addr1

    , CHR (10) | ' Address (line 1): ' | EMP.ext_contact_addr1

    NULL

    )

    , CHR (10)

    ) AS output_string

    WCP

    ;

    Using NVL2 like this, the label for each line gets concatenated only if there is some data to go with it.

    If the name is NULL, which means that the output_string will begin with a character of new line (which is CHR (10) on my system, you may need to change this).   I used LTRIM to remove this first newline character, if there be one.

    You can also consider the results of unpivoting so that you have between 0 and 4 lines in the result set for each row in the emp, with 4 items on separate lines.

  • Simultaneous report runs very slowly when the output format is 'XML' on IBM 6.1

    We have recently updated one of our test server database IBM AIX 5.3 to 6.1 operating system. We are witnessing a strange question in the execution time-out of simultaneous reports that have output in XML format (no server of publication and the Publisher). Whenever the output format is set to XML, the execution time seem to have increased very high than it used to be less than 5.3. A report to take 10 seconds which takes about 4 minutes to complete which is huge in comparison. Information about the version as below

    Oracle EBS 11.5.10

    Oracle 10.2.0.4.0 DB

    IBM AIX 6.1 OPERATING SYSTEM

    Oracle reports 6.0.8.28.0 (I know old enough)

    Provide expert advice.

    Thank you!

    All the

    We have solved the problem. I would like to share for the benefit of the readers of the community, if they are facing similar problems.

    The reason for the slowness of the report was due to lack of installation of the 'VIEW' option that is used when XML reports. Reports whose outputs are in format PDF, XML, HTML etc, Post Script, they all need a virtual display makes setup and configuration properties of config pointing to this server whenever settings are do. It could be a windows machine with X-Server running on it for display purposes or it could be services that are running on the same server for Unix/Linux applications where the application runs. We have installed VNC as X-Server that hosts services for virual (X) output for display on UNIX itself and have configured it in the reports configuration file. It seems to have solved the problem and the reports are run as expected (must faster!)

    Thank you

    Girish

  • Help: Output Format complex

    Hello

    Data in TAB_DTL for an APPID using, I need to generate a report in the following format.
    CREATE TABLE TAB_DTL
    (
    APPDATE          DATE,
    AMOUNT          NUMBER(12,2),
    STATUS          VARCHAR2(1),
    RATE          NUMBER(5,2)
    );
    
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '13/09/2011 10:50:45 AM','DD/MM/YYYY HH:MI:SS AM'), 500000, 'D', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '09/11/2011 1:15:30 PM','DD/MM/YYYY HH:MI:SS AM'), 5000, 'R', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '15/12/2011 3:20:31 PM','DD/MM/YYYY HH:MI:SS AM'), 5000, 'R', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '05/01/2012 10:25:11 AM','DD/MM/YYYY HH:MI:SS AM'), 5000, 'R', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '02/02/2012 4:23:34 PM','DD/MM/YYYY HH:MI:SS AM'), 5000, 'R', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '05/03/2012 11:15:45 AM','DD/MM/YYYY HH:MI:SS AM'), 5000, 'R', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '30/03/2012 11:55:10 AM','DD/MM/YYYY HH:MI:SS AM'), 5000, 'R', 13 );
    INSERT INTO TAB_DTL ( APPDATE, AMOUNT, STATUS, RATE ) VALUES TO_DATE( '31/03/2012 11:59:00 AM','DD/MM/YYYY HH:MI:SS AM'), 470000, 'B', 13 );
    
    
    OUTPUT FORMAT :
    
    APPDATE                    DR          CR     BALANCE          ACCAMT     DAYS     CUMM      
    13/09/2011 10:50:45 AM          5,00,000.00     0     5,00,000.00     10301     58     10301
    09/11/2011 1:15:30 PM          0          5000     4,95,000.00     6330     36     16631
    15/12/2011 3:20:31 PM          0          5000     4,90,000.00     3655     21     20286
    05/01/2012 10:25:11 AM           0          5000     4,85,000.00     4823     28     25109
    02/02/2012 4:23:34 PM          0          5000     4,80,000.00     5456     32     30565
    05/03/2012 11:15:45 AM          0          5000     4,75,000.00     4218     25     34783
    30/03/2012 11:55:10 AM          0          5000     4,70,000.00     334     2     35117
    31/03/2012 11:59:00 AM          0          0     4,70,000.00     35117
    For the calculation of A logic) DAYS: difference in days of the next later Date
    (B) ACCAMT: Balance * (unlike in the days of the next Date) * rate / days in the year

    With the help of CASE / SQLs of LEAD, the same thing can be accomplished.

    Thank you
  • ud32 output format

    Hi all

    We use ud32 to test service using fml32 buffer. One of the result field is a double, when the value of the field data are displayed in exponential format.

    Is it possible config output format? I don't want no exponential format. Its config possible in ud32?, it's a shell config?

    I thank in advance.

    Hello

    Unfortunately, there is not a way to control the release of ud/ud32. It just uses Fprint() which uses the format string "%g" to print floats and doubles. What you're asking for sounds reasonable. As an alternative it would be not difficult to use a script (awk or other) to convert the exponential value to format numbers in no exponential format.

    If you really need, I would suggest opening and enhancement with the Oracle customer support request.

    Kind regards
    Todd little
    Chief Architect of Oracle Tuxedo

    PS ud/ud32 is really a pretty simple utility and it reproduce yourself would not be a lot of work.

  • Problem with the format of the values in the command prompt (when you use multiple values)

    Hi all

    I have problem with the format of the values in the command prompt when you use multiple values.

    Value is year (2009) and when I use it in the drop-down list that is formatted, all right, as 2009, but when I use several values I get number as 2009,00. I put in year column format number with 0 decimal places and save by default in the year column. Year is formatted well anywhere in the query, such as 2009. Why is - what happens at the command prompt when you choose multiple values in prompt dashboard?

    Thank you

    I think the YEAR Data Type could be defined DOUBLE RPD.

    Use the CAST function in the formula (fx) and the output from test.

    CAST (INT YEAR)

    Hope, it will help you.

  • Problem with output 5VDC NI 9411 channel

    Hello

    I'm having a problem with output 5VDC NI 9411 channel. According to the specification of the module, it was stated that the module required external power from 5 to 30 VDC. Game of supply the module with the requirement of tension, I am still unable to get the output voltage of the output channels. Does this mean that the output voltage may be available depending on the program?

    Thanks in advance,

    Kind regards

    Mike640

    Hi Mike,.

    Thanks for posting on the forum of National Instruments.

    You should still be able to get an output voltage in properly feeding the NI 9411 and your external device.

    If you don't have a power supply of 5V to power the external device directly, or if you want to simplify the cabling, you can connect an external power supply to the Vsup and COM terminals on the connector terminal block screw NI 9411 and connect the external device to one of the pins Vout + 5. If the external device is already powered, you have not need connect a power supply on the NI 9411 or plug the Vout of + 5 to the external device.

    I hope this helps.

  • Met an output Format of D3D (unknown) on Windows Vista 32-bit, what this could be?

    Output format unknown D3D on Windows Vista, while trying to activate the game simulator of mining & Tunnelling?

    Need help!
    Jack

    Hello

    D3D error could be because the DirectX wrong on the computer.

    Download and install the latest version of DirectX from here:

    Use DirectX Runtimes (June 2010): http://www.microsoft.com/en-us/download/details.aspx?id=35

    If DirectX update does not help because the error is activation, you can contact Tunneling and mining simulator manufacturer for more assistance.

  • SQL output format

    Dear all,

    Select emp_no in emp;

    my output is

    1

    2

    3

    4

    But I want that as output format

    1,2,3,4

    Could you please tell me which application should I write it to achieve.

    Concerning

    Rajat

    Hi, Rajat,

    This is called the aggregation of the chain and this page:

    ORACLE-BASE - String aggregation Techniques

    shows several ways to do so.  What sense does use?  It depends on your requitrements and your version of Oracle.  The LISTAGG built-in aggregate function is good for most purposes.

  • Question output formatting

    Hello community! Sorry, it's so rudimentary. Can anyone offer advice on how to better format the output of the below? As it is, it prints it just without formatting - I want out as the output format-table and I would have zero decimal places in the output of Write-Host $CurrentItemHdd.CapacityGB.  Thank you!

    foreach ($VmItem to $MyVms)

    {

    $CurrentItemHdd = get-disk hard - VM $VmItem

    Write-Host $VmItem.Name $CurrentItemHdd.CapacityGB

    }

    To create an exit in your PowerCLI script like the Format-Table output, you must create an output object. There are several ways you can do. One way is to use the PowerShell New-Object as shown in the below script cmdlet. The properties in the New-Object cmdlet output are not classified. That's why I redirect the output to the Select-Object cmdlet to order.

    Your original script will generate a table for the CapacityGB property, if a virtual machine has more than one hard drive. That's why I introduced a second foreach to browse the hard drives. Because you probably want to know that CapacityGB belongs to the hard drive, I added the property 'hard drive '.

    [Math] .NET: Round() function is used to supplement the CapacityGB to zero decimal places.

    The character '&' at the beginning of the script and the scriptblock around the script are necessary to allow to channel the output of the script to another cmdlet as Export-CSV. foreach is not a cmdlet, and therefor you cannot use the out of foreach in the pipeline without using this trick.

    & {foreach ($VmItem to $MyVms)

    {

    foreach ($CurrentItemHdd in (Get-disk hard - VM $VmItem))

    {

    New-Object PSObject-property @ {} TypeName

    VM = $VmItem.Name

    "Hard drive" = $CurrentItemHdd.Name

    CapacityGB = [Math]: Round($CurrentItemHdd.CapacityGB,0)

    } |

    Select-Object - property, CapacityGB VM, 'Hard drive'

    }

    }}

    Post edited by: Robert van den Nieuwendijk

Maybe you are looking for

  • unacessable of movies on itunes

    Have us just watch a rented movie iTunes and cannot rent to another. Circles keep turning and turning for whatever other movies that we watch.

  • Authorization Manager - how to 'forget' several sites at once

    Firefox Authorization Manager allows a user to a site "Forget this Site" at once - but this isn't a practical way to forget hundreds or thousands of sites listed in Authorization Manager. Is it possible to select several sites to Forget, or to treatm

  • Error 2101: ThinkPad T430 and Nocti OCZ 120 GB

    Hello After about a month of use, I suddenly got an error: "2101: Drive error detection on hdd2 (sata mini)". Simply by browsing the internet system hung up and after the reboot, that the error appeared. I read that people here had same error just af

  • m9510f not start

    I turned on my m9510f this morning and the computer began to start, and after 5 sec off.  However, 5 seconds later it turns on the turned 5 sec.  It will continue until this that unplugged from the wall.  I thought the power supply was bad, so I repl

  • Context menu in the list field

    Hi, I want to make the context menu, which will apper when the user clicks on an item in the list filed. It will be displayed right on the field. I don't see my context menu when the user clicks the button menu blackberry. Thank you.