The analysis of string to xml format

Dear all,

I have an OSB service that returns an xml string output form.
I call this OSB service in BPEL but it fails because of the format of the string received by BPEL.

How can I avoid it. I also try to convert string to xml but failing to do so.

The pointers to that would be useful

Thank you and best regards,
MITS

try to set the response from transport HTTP header
http:content-type=text/XML
application/xml or (even better)

(and of course, you must make sure you have fn - bea: inlinedXml() function to convert the string in an XmlObject)

Tags: Fusion Middleware

Similar Questions

  • String to XML format

    Hello

    How can I convert a string in XML format if I use tags?

    sergei_developer wrote:

    You must use:

    var x: XML =blaaaaaaat;

    var s:String = x.info.@title;

    This code is incorrect and will not work. 'title' is not an attribute but a node if you need to access it this way and also, the node root (called 'info') is considered implicit, which means you acceding the node 'title' in this way: var s:String = x.titel;

    Good luck

    Barni

  • the analysis of string data

    Hi all

    I got the series communation data string in this format:

    Bridge of fuse HtrPwrV VDispV/C PAO V/C DTM V/C DiffC NC
    OK VALIDATES 1.80 0.95 3.16 0.53 537 29.6
    369 647 110

    And I want to extract some value from it. I realized that they are separated with spaces between them. So I thought about transfer them into an array and then extract some lines/columns there. But I don't know how to do.

    Could you give me an idea. Or if you have a better way, then please show me!

    Thank you

    Here is a way.

  • How to get a date to the timestamp of a file XML format

    Hello

    I'm trying to get a date from an external XML file. My XML file looks like this:


    <>http://www.NI.com/LVData">
        8.6.1
        
            Date of birth
            31/03/1983
        
     

    I can get the system to retrieve the correct XML element that shows the nested and elements , but I have no way to retrieve correctly the date. It seems as if she interprets my date seconds since 1904. I try to keep the "readable" for the end user XML, so it is important to keep this date in standard U.S. date format. I eventually uses this date to calculate the age of something. I labour code to subtract a timestamp in the format of the date to the current date and time, but I can't access it when I get back from XML.

    Starting from XML schema, it looks like the timestamp element requires a cluster... but there is no documentation on what to spend. Any ideas how to get back an XML date in this format in a simple and clean?

    Here's my current VI:

    Thank you

    Ryan

    Cambridge, MY

    Quick Tip on "bundle by name.  You don't need to consolidate all these constants where the values correspond to what is the constant of cluster at the top.  The cluster constant defines the data structure and the starting values.  Simply group the values for specific change items.

    Example of tone would be a bit cleaner.  Although the format string should use a capital T.

    As always with dealing with the time, complications could arise due to dealing with time zones and leap years.  Zones shouldn't matter for the calculation of the years since you are rounded up to years.  Although you probably want to round down rather than round at most closely. (I forgot this part in my example).  The problem with leap years when you would be only in a certain number of days of the anniversary, he would round up the age.  The number of rounded days would depend on how much on leap days that nobody has seen in their lifetime.

  • Transform a string in XML format

    Hello world!
    Dows anyone know how I can transform a string which has a XML form (for ex: "child1 < element > < subitem1 > < / subitem1 > < subitem2 > child2 < / subitem2 > < / item >"' ") in an actual XML instance?
    Thank you very much!

    Using AS2.

    var xml_str:String = "child1child2.

    definition of the XML source within the XML constructor:
    var my1_xml:XML = new XML (xml_str);
    trace (my1_xml.firstChild.nodeName); output: point

  • The analysis of string in the input channels

    Hello

    I'm trying to parse a string into a matrix, or tables in real time. Thus, assuming that the line below is part of my entry

    A134B932C321D95E532F1024A13B932C321D95E532F1024

    I would like to analyze the data and constantly create a matrix (or a series of paintings), such that each row corresponds to a letter. For example, something like below:

    13 13

    932 932

    321 321

    95 95

    532 532

    1024 1024

    I was able to parse the string using the letters as delimiters, but I was not able to find a way to organize the values. The goal of my project is to receive 6 different a mircoprocessor input and displaying the entries on different graphics.

    Thank you in advance,


  • How to add the version and encoding in XML format

    Hello

    I generate an XML using code such as
    SELECT  XMLELEMENT(
                 "Document"
                ,XMLAttributes(
                     'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99' AS "xmlns"
                    ,'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
                    ,'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd' AS "xsi:schemaLocation"
                    )
            )
    FROM    dual;
    The result ist
    <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd">
    </Document>
    But I need
    <?xml version="1.0" encoding="UTF-8"?>
    <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd">
    </Document>
    I can add the header in my selection?

    The XMLTYPE is inserted in a table and from there transferred via webutil to location of the customer.
    I have found that I can convert the XMLTYPE in a DOM document, and then use dbms_XMLDom.setCharset, but how do I convert to an XMLTYPE. The only way I've found is to convert it to a CLOB, then in an XMLTYPE.

    Concerning
    Marcus

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    >
    I was going to suggest XMLRoot but he does not understand the encoding
    >
    Why? :)

    SELECT XMLROOT(
           XMLELEMENT(
                 "Document"
                ,XMLAttributes(
                     'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99' AS "xmlns"
                    ,'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
                    ,'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd' AS "xsi:schemaLocation"
                    )
            )
            , version '1.0" encoding="UTF-8'
           )
    FROM    dual;
    

    Another way

    SELECT XMLTYPE
               (
                  '' ||
                  xmlElement("Foo",'Fii').getClobVal()
               )
    FROM DUAL
    
  • How to write the output from oracle to XML format

    can one please let me know how write or exit procedure, or a function hidden in XML?

    [url http://download.oracle.com/docs/cd/E11882_01/appdev.112/e23094/xdb13gen.htm#g1047191] 18 chapter in the XML DB Developer's Guide deals with many different ways to generate XML from the database data.

  • Doubt in the analysis of String

    Hello


    '23:BE|2009:A@Banglore '.

    I need to analyze the above string and retrieve the data.

    Now I use the StringTokenizer and my code is present,

    String sz = "23:BE|2009+A@Banglore";
    
              StringTokenizer szTkn = new StringTokenizer(sz, ":");
    
              System.out.println(" : " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "|");
              System.out.println(" | " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "+");
              System.out.println(" + " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "@");
              System.out.println(" @ " + szTkn.nextToken());
    
              System.out.println(" " + szTkn.nextToken());
    is there a good way to do this?

    Vijay wrote:
    You can use backreferencing to capture any group in a correspondence of motifs.
    Take a look at this:
    http://download.Oracle.com/javase/tutorial/essential/regex/groups.html

    I don't see how "backreferencing' entry in this since the OP needs the content of field values between the separators without direct reference to what was found before.

    Since the original code fields are always there, and always in the same order, I think it is always more easy just use split()

    String sz = "23:BE|2009+A@Banglore";
    String[] splitSz = sz.split("[:|+@]");
    
  • The analysis of string values

    Hello. I have a variable:

    var myString:String = "811 812";

    I want to be able to do is to have a code that crosses myString and analyzes the numbers between the commas. This value then is passed to my switch function where I assign methods based on the results.

    As I am new to AS3.0, I don't know where to start.

    Thanks for any help.

    -Of

    var myString:String = "811 812";

    var re: RegExp = /, /;
    Table of results: var = myString.split (re);

    trace(result[0]); 811
    trace(result[1]); 812

  • The analysis of a simple XML file

    Hello

    In the XML code shown below, I want to get the value of the ID element that is nested in the item BOX.

    The ColdFusion code that I have in my example outputs the xmltext of the RICHTEXT item.

    What a change I would make to the value of the ID (e.g. text 1) followed by the exit of the RICHTEXT element?

    I wish it were something like
    Text 1: sweet
    Text 2: Frédérique Joe vineyard

    I really don't need to worry about the other elements or attributes. Those are the only ones I need. Any suggestions?

    Best regards
    Kevin

    The following seems to do what you want.

  • the analysis of string separated by commas

    Hello people,

    Indeed, this forum is great and has always helped me a lot. I hope that this time remains the same. Thank you guys for you continues a support and help.

    I have a value string as a-, b, c, d, e, f

    Just sql help, I want to put each value of the string above in a different line. If the output should be-

    one
    b
    c
    d
    e
    f

    using procedures would not only complex, but I just want to do by using queries.

    Please advise,
    Thank you.
    SQL> with t as (select 'ABC,DEF GHI,JKL' str from dual)
      2  select regexp_substr(str,'[^,]+', 1, level) list
      3  from t connect by level <= NVL( LENGTH( REGEXP_REPLACE( str, '[^,]+', NULL ) ), 0 ) + 1
      4  /
    
    LIST
    ---------------
    ABC
    DEF GHI
    JKL
    
  • Need to help in the analysis of string in JSON using PLJSON

    Hello
    I have JSON stored in a database field:

    -Query
    Select data1 from table1 where id = 339207152427;
    -Results:
    [{'name': 'Home'}, {'code': 'JPNWC74ZKW9'}, {'start date': ' 01\/02\/2014'}, {'name': "hhh, Rams '}]

    I need to analyze the above results in 3 fields in a separate table. For now, I just try to analyze the results using PLJSON, but get ORA-20101: JSON Parser exception - no {beginning found error during the execution of the following pl/sql block:}

    declare

    VIN_JSON varchar2 (4000);
    jsonObj json;
    listOfValues json_list;
    listElement json_value;

    Start

    Select data1 in VIN_JSON from table1 where id = 339207152427;

    jsonObj: = new json (VIN_JSON);
    listOfValues: = jsonObj.get_values ();

    I'm looping 1.listOfValues.count
    listElement: = listOfValues.get (i);

    end loop;
    end;
    /

    I believe that my syntax is close, but was hoping some new instructions.

    Thanks in advance!
    John

    The brackets indicate a list. If you already have a list and new json may not work.

    listOfValues := json_list(VIN_JSON);
    

    Published by: chris227 on 25.02.2013 12:52

  • The analysis of E4X corrupt xml... any help is appreciated

    < contactlist >

    < contact >

    < > 1111 contactid < / contactid >

    URL of the < imageurl > < / imageurl >

    Y < Favorites > < / a >

    < contactType > VZW < / contactType >

    < mobileSync > Y < / mobileSync >

    < type element = "section" > first name or family name < / point >

    < type element "subheading" = > company, title < / point >

    < index of the element '1' type = 'mobile phone' = > mobilephone < / item >

    < index of the element '2' type = 'as workPhone' = > mobilephone < / item >

    < index of the item "3" type = "homePhone" = > mobilephone < / item >

    < index of the item = '4' type = 'give' > mobilephone < / item >

    < index of the item = "5" type = "lineSeparator" / >

    < index of the item = "6" type = "personalEmail" > emailaddress < / item >

    < index of the item = "7" type = "businessEmail" > emailaddress < / item >

    < index of the item = "8" type = "im" > john123 (Yahoo) < / item >

    < = '9' type = "webUrl" element index > weburl < / item >

    < index of the item = "10" type = "address" > address < / point >

    < index of the item = "11" type = "lineSeparator" / >

    < index of the item = "12" type = "webGroup" > combined wireless < / point >

    < index of the item = "13" type = "mobileGroup" > family < / item >

    < index of the item = "14" type = "lastLineSeparator" / >

    < Settings > Google, Yahoo < / parameter >

    < lastUpdated > update 11, 13:43 < / lastUpdated >

    < connectStatus > 1 < / connectStatus >

    < webGroup > 1,3,4 < / webGroup >

    < mobileGroup > 2.5 < / mobileGroup >

    < name = "sessionid" > 23424 extraParam < / extraParam >

    < name = "sessionid" > 23424 extraParam < / extraParam >

    < / contact >

    < contact >

    < > 2222 contactid < / contactid >

    URL of the < imageurl > < / imageurl >

    Y < Favorites > < / a >

    < contactType > VZW < / contactType >

    < mobileSync > Y < / mobileSync >

    < type element = "section" > first name or family name < / point >

    < type element "subheading" = > company, title < / point >

    < index of the element '1' type = 'mobile phone' = > mobilephone < / item >

    < index of the element '2' type = 'as workPhone' = > mobilephone < / item >

    < index of the item "3" type = "homePhone" = > mobilephone < / item >

    < index of the item = '4' type = 'give' > mobilephone < / item >

    < index of the item = "5" type = "lineSeparator" / >

    < index of the item = "6" type = "personalEmail" > emailaddress < / item >

    < index of the item = "7" type = "businessEmail" > emailaddress < / item >

    < index of the item = "8" type = "im" > john123 (Yahoo) < / item >

    < = '9' type = "webUrl" element index > weburl < / item >

    < index of the item = "10" type = "address" > address < / point >

    < index of the item = "11" type = "lineSeparator" / >

    < index of the item = "12" type = "webGroup" > combined wireless < / point >

    < index of the item = "13" type = "mobileGroup" > family < / item >

    < index of the item = "14" type = "lastLineSeparator" / >

    < Settings > Google, Yahoo < / parameter >

    < lastUpdated > update 11, 13:43 < / lastUpdated >

    < connectStatus > 1 < / connectStatus >

    < webGroup > 1,3,4 < / webGroup >

    < mobileGroup > 2.5 < / mobileGroup >

    < name = "sessionid" > 23424 extraParam < / extraParam >

    < name = "sessionid" > 23424 extraParam < / extraParam >

    < / contact >

    < / contact >

    @Greg: I'm not sure what you mean by that, but I doubt that this is true.

    @Rushbond: result.text = myXML.contact [0] .item. (@type is "title"); 2 equals signs

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • The analysis of the xml in a text field string

    I call a Web service that returns a string in XML format as follows:

    < TemplateList >

    < template >

    < ID > 0 < /ID >

    < category >

    < name > Mine now < / name >

    < product >

    < ID > 0 < /ID >

    < description > SOLE HEEL CUP STAR JR. BLUE < / Description >

    < HDMSProductId > 227 < / HDMSProductId >

    < LawsonId > 216156 < / LawsonId >

    < PopupMessage / >

    < price / >

    < / product >

    < / category >

    < category >

    < name > old new < / name >

    < product >

    < ID > 0 < /ID >

    SMALL SLEEVES < description > TUBE PEDI-FOAM < / Description >

    < HDMSProductId > 224 < / HDMSProductId >

    < LawsonId > 216152 < / LawsonId >

    < PopupMessage / >

    < price / >

    < / product >

    < / category >

    < category >

    the four-legged < name > < / name >

    < product >

    < ID > 0 < /ID >

    SMALL SLEEVES < description > TUBE PEDI-FOAM < / Description >

    < HDMSProductId > 224 < / HDMSProductId >

    < LawsonId > 216152 < / LawsonId >

    < PopupMessage / >

    < price / >

    < / product >

    < / category >

    < category >

    Spirit of < name > < / name >

    < product >

    ... etc.

    < / product >

    < / category >

    < / template >

    < / TemplateList >

    I am drilling down to retrieve this string data. What is the best way to do so in the form of LC Designer?

    I tried to link the result to a text box and use applyXPath, but it's complicated when there is more than 1 product to go. Suggestions and examples are greatly appreciated!

    Hello

    What do you call the Web service.  If you use a data connection, and then you normally would bind a field to the result (even if this field is hidden).  If you use NET. SOAP, by default, you will get a return JavaScript object.

    But to answer your question, you can use E4X

    var responseString = "';

    responseXML var = new XML (responseString);

    for each (var in responseXML.Template.Category category)

    {

    Console.println (category. Name + "" + category. Product.Description);

    }

    Concerning

    Bruce

Maybe you are looking for

  • I have problems to download Adobe Flash 18, anyone who has a problem?

    I have a problem downloading Adobe Flash 18. I get a little window that says "Installation will begin shortly." About 5 minutes later, I get an error message that says: "Error initializing Application." And when I click on the button finish down to t

  • How will I know if a current video card supports new HP 2511 x LED monitor?

    I have HP Pavilion a750y (PJ621AV) CTO Desktop PC, Pentium (r) 4 CPU 3.20 Ghz,.99 GB of RAM, Microsoft Windows XP, Service Pack 3. Always have the same square screen, it came with December 2004: HPvf15 flat screen monitor with "Intel (r) 82915 G/910G

  • T120 disorders of margin

    Hello I'm trying to print from enough new versions of Adobe Acrobat and AutoCAD without success. I'm on Windows 7 Pro 64 bit, printing on paper 8.5 "x 11".  Both the applications autosize the output to include the margins of the printer.  He worked o

  • Where can I find the Windows Update for Windows 7 Agent?

    I know that the WindowsUpdateAgent30 - x 86 .exe is available on the microsoft Web site, but there is also a message that this may not be applicable for windows 7.  Then there is mention please check the site of solution of windows 7. Does anyone kno

  • If multiple assignment of the var statement

    hope this is the right place to post.  Admin pls mention where to post if this is wrong place. have a simple program [code] #include int main() {char a = "A"; While (oneprintf ("%c", a); If (a 70% == 0 | a 76% == 0 | a 82% == 0 | a 88% == 0)printf ("