Xslt and getting data from a uri in xml file

In my xml file, i have a node that conains a uri to another xml file
Is it possible to use XSLT to open the hyperlink and get the content of that xml file?

Possibly using the document() function.

Similar Messages

  • How get data from business object to xml file

    Hi all,
    My new problem is ,,
    In my application, I have check list of selected business partners. In that , I want to save the checked oBusinessPartners complete information to an XML file(created dynamically),
    How to do?
    Thanks in advance
    shashi kiran

    Shashi Kiran,
    Can you explain me detail where
    you want to save check business partners in xml ?
    Jeyakanthan

  • Read and Get Data from PDF

    Hi All,
    I am fairly new to programming macros in Excel VBA, and right now I need to write a macro that can open a PDF file and read it and get data from there and paste it into an excel spread sheet. Is this possible?  If so can you give me some sample code
    that would do that?

    I did this once many years ago.  I had to have Acrobat Professional installed ($$$).  There are free pdf parsers that you access from VBA using Win32 commands like:
    https://code.google.com/p/peepdf/
    Maybe something has changed since I did it

  • Convert data from internal table to XML file.

    Hi All,
    I am selecting data from database into one internal table.
    Now I want to convert data from internal table to xml file format and save in to my desktop. Please suggest me how I can achieve my requirement.
    Kindly reply me ASAP.

    Use this FM. SAP_CONVERT_TO_XML_FORMAT
    Check this link too -
    Re: Data Export in XML format
    XML files from ABAP programs

  • Sending and getting data from external file.

    I'm running it in actionscript 1  and 2 since 3 wouldn't work when getting data from external media. I'm  trying to find out how to post data to a PHP file and getting from that  file I'm trying to make the flash for something that works like a game  but differently. Since I just found out how to make the HTML stuff show  up but a lot of times, some of my text will not appear so I don't know  what's going on.
    Does anyone know how to send and get data both at the same time from a sample file?
    The sample file is example.php
    It has to sent information like ID and NAME
    and it has to get information like Description and userID

    Ned Murphy wrote:
    The tutorial I pointed you to does provide the visuals you requested, both the AS code and sample PHP code, so I can't see where your learning by visuals aspect holds up.... your approach sounds more like you want someone to hand you a tailored solution that you won't need to learn from.  Visuals require reading and doing.  If that fails to get absorbed or you couldn't understand/revise it, what could anyone else prepare for you that would work better?
    I did the tutorial and everything but every time I press the button or even load it, it keeps on saying undefined. I like the have a sample FLA file so I can figure things out. I did everything from the site but it won't work out for me.
    I did step 5 too because it was almost all that I was looking for but it won't even work. keeps on saying undefined. I would show you but webcam max won't work and I can't show you an example.
    EDIT:
    You know it's frustrating when I don't know how the heck I'm supposed to do this stuff. I read the whole dang thing and I still can't get this dang thing working.
    I did everything. EVERYTHING. I just don't get this crap.

  • NIO Socket implementation - delay between select and get data from socket

    Hi all,
    I have implemented a internal CallAPI for RPC over a socket connection. It works fine but if there are more than five clients and some load I have the phenomena that the READ selector returns a SelectorKey but I did not get any data from the socket.
    My implementation is based on NIO has following components:
    + Accept-Thread
    Thread handles new clients.
    + Read-Thread
    Thread handles the data from the socket for the registered client. Each request is handled in an own Process-Thread. A Thread-Pool implementation is used for processing.
    + Process-Thread
    The Process-Thread reads the data from the socket and starts the processing of the logical request.
    In my tests I get the notification of data at the socket. The Process-Thread want to read the data for the socket, but no data are available. In some situations if have to read about 20 times and more to get the data. Between each read attempt I have inserted a sleep in the Process-Thread if no data was available. This have improved the problem, but it already exists. I tested the problem with several systems and jvm's but it seams that it is independent from the system.
    What can I to do improve the situation?
    I already include the read implementation from the grizzly-Framework. But it doesn't improve the situation.
    Socket - Init
         protected void openSocket( String host, int port ) throws IOException
              serverChannel = ServerSocketChannel.open();
              serverChannel.configureBlocking( false );
              serverSocket = serverChannel.socket();
              serverSocket.setReuseAddress( true );
              this.serverhost = host;
              this.serverport = port;
              this.srvAcceptSelector = Selector.open();
              this.srvReadSelector = Selector.open();
              InetSocketAddress isa = null;
              if ( serverhost != null )
                   isa = new InetSocketAddress( this.serverhost, this.serverport );
              else
                   isa = new InetSocketAddress( this.serverport );
              serverSocket.bind( isa, 50 );
              serverChannel.register( this.srvAcceptSelector, SelectionKey.OP_ACCEPT );
         }New Client � Init
         // New Client
         if ( key.isAcceptable())
              keyCountConnect++;
              ServerSocketChannel actChannel =
                   (ServerSocketChannel) key.channel();
              // Socket akteptieren
              SocketChannel actSocket = actChannel.accept();
              if ( actSocket != null )
                   actSocket.finishConnect();
                   actSocket.configureBlocking( false );
                   actSocket.socket().setTcpNoDelay( true );
                   this.registerSocketList.add( actSocket );
                   this.srvReadSelector.wakeup();
         }Read Data from Socket
        protected int readDatafromSocket( ByteArrayOutputStream socketdata )
             throws IOException
             int readedChars = 0;
            int count = -1;
            Selector readSelector = null;
            SelectionKey tmpKey = null;
            if ( sc.isOpen())
                  ByteBuffer inputbuffer = null;
                 try
                      inputbuffer = bufferpool.getBuffer();
                      while (( count = sc.read( inputbuffer )) > 0 )
                           readedChars += count;
                          inputbuffer.flip();
                           byte[] tmparray=new byte[inputbuffer.remaining()];
                           inputbuffer.get( tmparray );
                           socketdata.write( tmparray );
                          inputbuffer.clear();
                      if ( count < 0 )
                           this.closeSocket();
                           if( readedChars == 0 )
                                readedChars = -1;
                           if ( log.isDebug())
                                  log.debug( "Socket is closed! " );
                      else if ( readedChars == 0 )
                           if ( log.isDebug())
                                  log.debug( "Reread with TmpSelector" );
                           // Glassfish/Grizzly-Implementation
                         readSelector = SelectorFactory.getSelector();
                         if ( readSelector == null )
                              return 0;
                          count = 1;
                          tmpKey = this.sc.register( readSelector, SelectionKey.OP_READ );
                         tmpKey.interestOps(
                              tmpKey.interestOps() | SelectionKey.OP_READ );
                         int code = readSelector.select( 500 );
                         tmpKey.interestOps(
                             tmpKey.interestOps() & ( ~SelectionKey.OP_READ ));
                         if ( code == 0 )
                             return 0;
                             // Return on the main Selector and try again.
                           while (( count = sc.read( inputbuffer )) > 0 )
                                readedChars += count;
                               inputbuffer.flip();
                                byte[] tmparray=new byte[inputbuffer.remaining()];
                                inputbuffer.get( tmparray );
                                socketdata.write( tmparray );
                               inputbuffer.clear();
                           if ( count < 0 )
                                this.closeSocket();
                                if( readedChars == 0 )
                                     readedChars =-1;
                           else if ( count == 0 )
                                  // No data
                 finally
                      if ( inputbuffer != null )
                           bufferpool.releaseBuffer( inputbuffer );
                           inputbuffer = null;
                      // Glassfish-Implementierung
                    if ( tmpKey != null )
                        tmpKey.cancel();
                    if ( readSelector != null)
                        // Bug 6403933
                         try
                            readSelector.selectNow();
                         catch (IOException ex)
                        SelectorFactory.returnSelector( readSelector );
            return readedChars;
        }Thanks for your time.

    I've commented on that blog before. It is rubbish:
    - what does 'overloading the main Selector' actually mean? if anything?
    - 'Although this not clearly stated inside the NIO API documentation': The API documentation doesn't say anything about which Selector you should register channels with. Why would it? Register it with any Selector you like ...
    - 'the cost of maintaining multiple Selectors can reduce scalability instead of improving it' Exactly. So what is the point again?
    - 'wrapping a ByteBuffer inside a ByteBufferInputStream:' Code is rubbish and redundant. java.nio.channels.Channels has methods for this.
    There is no a priori advantage to using multiple Selectors and threads unless you have multiple CPUs. And even then not much, as non-blocking reads and writes don't consume significant amounts of CPU. It's the processing of the data once you've got it that takes the CPU, and that should be done in a separate thread.
    So I would re-evaluate your strategy. I suspect you're getting the channel registered with more than one Selector at a time. Implement it the simple way first then see if you really have a problem with 'overloading the main Selector' ...

  • !!! Storing and Getting data  from HashMap !!!

    Hi ,
    I have got a doubt if this is possible .. Please let me know if this can be implemented ..
    I have a Process1 running which stores data into HashMap one by one from the Users.
    Eg:
    Key Object
    1 ---> Karthik
    2 ---> Raaghav
    3 ---> Srikanth
    and so on ..
    Now what i internally do is i will wait for 5 min Duration (Session TimeOut).Once it is Over 5 min I will delete it from HashMap and Store it in a file ..
    Iam also using WebServer Eg:Iplanet .
    Now when i Shut down Iplanet all the data in the HashMap is Lost .
    My Requirement is to write another Process2 which will be invoked as soon as Iplanet is ShutDown and This process has to read the data from HashMap which is not Timed out .And write it into the File ..
    Q1)Please Let me know if this is can be Done ..
    Task Done :
    Process1 is already existing
    Doubts :
    Q2)If we write a Process2 will it spawn another VM or it will take the same VM that of the Process1.
    Becos if it spawns another VM then I will not be able to get the data from HashMap of the Process1..
    Thanks in Advance,
    [email protected]

    Thank You for the ..
    But my prblm is that the Process1 is already Existing which reads and writes in to HashMap ( Not a Servlets) ..Its a Pure Java Code ..
    And Now the requirement is another Process2 lets say which is put in thread (running in background )which gets the data from the HashMap of the Process1 or in other words Use the Same HashMap and not a different One ...
    Process1 ------------------>HashMap
    (write.java) (writes data ) /\
    |
    |
    |(get Data)
    |
    |
    |
    Process2
    I hope iam clear with my requirement ..
    If Any further explanation Required Iam perpared to give ..Please let me know
    thanks in advance ..

  • !!!! Storing and Getting Data from HashMap !!! VERY URGENT

    Hi ,
    I have got a doubt if this is possible .. Please let me know if this can be implemented ..
    I have a Process1 running which stores data into HashMap one by one from the Users.
    Eg:
    Key Object
    1 ---> Karthik
    2 ---> Raaghav
    3 ---> Srikanth
    and so on ..
    Now what i internally do is i will wait for 5 min Duration (Session TimeOut).Once it is Over 5 min I will delete it from HashMap and Store it in a file ..
    Iam also using WebServer Eg:Iplanet .
    Now when i Shut down Iplanet all the data in the HashMap is Lost .
    My Requirement is to write another Process2 which will be invoked as soon as Iplanet is ShutDown and This process has to read the data from HashMap which is not Timed out .And write it into the File ..
    Q1)Please Let me know if this is can be Done ..
    Task Done :
    Process1 is already existing
    Doubts :
    Q2)If we write a Process2 will it spawn another VM or it will take the same VM that of the Process1.
    Becos if it spawns another VM then I will not be able to get the data from HashMap of the Process1..
    Thanks in Advance,
    [email protected]

    You need to consider the following
    -------Normal execution:
    Keep a list of all instances of the HashMap and a timestamp for each. Start a timer thread (or use the jdk api Timer class). Fire it every minute, or 5 minutes, or hour - the length depends on how your system runs - load, fail-safe, etc. When the timer fires, any instances with expired timestamps are written.
    -------Graceful Shutdown:
    If you have a way to exit your application gracefully then rbyrom suggestion is needed. Basically it writes all existing instances in the list on shutdown.
    -------Abnormal events
    What do you do if the disk drive is full and you can't write data?
    -------Abnormal shutdown
    What happens if someone pulls the plug on the server? How important is the data?

  • SSRS Expression to compare two values and get data from another dataset

    Hi,
    I have a requirement where in i need to compare a value of a dataset (not the one which table is poiting to)
    with the value of a text box, and return the count if it matches else 0, the expression is as below. Here 
    industryName and recCount are from the dataset ds_MedimOrLowImpactEntities.  whats wrong in this expression
    =Sum(IIF(Fields!industryName.Value = reportItems!hpapra_name.Value, Fields!RecCount.Value, 0), "ds_MediumOrLowImpactEntities")
    This is the error that i am getting:
    Any help on this is appreciated
    Kruthi Hegde

    Hi Kruthi,
    After testing the issue in my local environment, I can reproduce it. Just the error message said, “Aggregate function can be used only on report items contained in page headers and footers”. So the sum function that contains report items should be stayed
    at page headers or footers. Besides, you said the hpapra_name textbox contain a field from another dataset, not the ds_MedimOrLowImpactEntities dataset. While in Reporting Services, Report item expressions can only refer to other report items within the same
    grouping scope or a containing grouping scope. So consider the two issues, we should use some other expression to instead the “reportItems!hpapra_name.Value” expression.
    Take a look at the "Looking up values from another dataset" topic here:
    http://msdn.microsoft.com/en-us/library/ms159673.aspx#LookupFunctions
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to get data from BW Cube to Another File system?

    Hi,
    I have a requirement to get the sales data from BW system(infoCube) to another file system as XML file using XI as a middleware. Can anybody give the suggestions on this please?
    Thanks & Regards,
    Satish

    Take a look at the following document. You will get a fair idea how to integrate BW and XI.
    BW > XI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/integrate bw via xi.pdf
    XI> BW
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to push data into bw from xi.pdf
    regards
    SKM

  • FM to get Data from Sheet of an excel file to Internal table??

    Hello Champs!!!
    I have a problem in Excel File's Data Getting.
    There are diffrent Sheets in a single Excel file. I need data of a perticular sheet into an internal Table.
    Like there are 2 Sheets in an Excel file EXCEL1, Sheet1 & Sheet2. Both Sheet have diffrent Data in it.
    Now i only need Data of Sheet1 of this Excel FIle Excel1.
    How can i get it?
    Can you please help me in this?
    Thanks in Advance!!!!
    Girija Shankar

    Welcome to SCN
    Please search before you post next time:BDC, upload data from multi excel sheets

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Publish Report through RTF Template based on data from 2 diff. XML Files

    We are trying and facing issue to generate report in BI Publisher by concatenating 2 XML files as described below. Please help!
    1.We have two xml.One xml is comming from our data base query (through data template) and other is coming through url (using HTTP xml feed option)
    We are concanating thse two xml in BI Publisher. Now i am getting the concanated xml as shown below .
    <?xml version="1.0"?>
    <STAR>
    <DATA>
    <ROWSET>
    <ROW>
    <USER_NAME>ABC</USER_NAME>
    <STAFF_ID>589089</STAFF_ID>
    <COLOR_HOURS>2</COLOR_HOURS>
    <OPINION_HOURS>3</OPINION_HOURS>
    <DOWN_HOURS>4</DOWN_HOURS>
    </ROW>
    </ROWSET>
    </DATA>
    <HRMS_DATA_RESPONSE>
    <EMP_DETAIL>
    <EMPID>589089</EMPID>
    <REGULAR_TIME>19</REGULAR_TIME>
    <OVER_TIME>4.75</OVER_TIME>
    <MAKEUP_TIME>3</MAKEUP_TIME>
    <DOUBLE_TIME>4</DOUBLE_TIME>
    <REDUCED_TIME>1</REDUCED_TIME>
    <UNPAID_TIME/>
    </EMP_DETAIL>
    <STATUS>SUCCESS</STATUS>
    <ERROR>
    <ERROR_CD />
    <ERROR_DESC />
    </ERROR>
    </HRMS_DATA_RESPONSE>
    </STAR>
    2.Now we have to calculate like eg.( COLOR_HOURS+ DOWN_HOURS -MAKEUP_TIME-REDUCED_TIME ) for each EMPID which is same as STAFF_ID .
    3. Now our concern is that we are not able to get values.
    we are doing something like:
    <?for each:data?><?for each: row?><?STAFF_ID?><?for each:HRMS_DATA_RESPONSE?><?for each:EMP_DETAI?><?if:EMPID= STAFF_ID?><?( COLOR_HOURS+ DOWN_HOURS -MAKEUP_TIME-REDUCED_TIME )?><?end if?><?end for each?><?end for each?><?end for each?><?end for each?>

    Hi,
    Thanks a lot, it really helps me a lot, i hav one more issue, In a field i hav to calculate Adjusted hrs, which i hav calculate like this
    for adjusted hrs----
    <?for-each://EMPDETAIL?><?if:xdoxslt:get_variable($_XDOCTX,’STAFF_ID’) = EMPID?>
    <?xdoxslt:set_variable($_XDOCTX,'Diff',REGULAR_TIME + OVER_TIME + MAKEUP_TIME + DOUBLE_TIME - REDUCED_TIME) ?>
    <?xdoxslt:get_variable($_XDOCTX,'Diff') - xdoxslt:get_variable($_XDOCTX,'STAFF_HOURS')?
    its working fine now again i store this in another variable 'A'.
    <?xdoxslt:set_variable($_XDOCTX,'A',
    xdoxslt:get_variable($_XDOCTX,'Diff') - xdoxslt:get_variable($_XDOCTX,'STAFF_HOURS'))?>
    <?END IF?><?end for-each?>
    Now again i take a variable SUM in which this calculation is done, all these fields r in each ROW of DATA.
    <?xdoxslt:set_variable($_XDOCTX,'SUM',((TOTAL_PRELIM TOTAL_DOUBLETOTAL_TRIPLE+TOTAL_QA+TOTAL_GDC+((TOTAL_DOSSIER) div (2)))*8))?>
    <?if@column:../../STATUS1 != 'GRADING DEVELOPMENT COORDINATOR' ?>(*STATUS1 is field in DATA/ROW)
    <?if:../../STATUS1 = 'Prelim' ?>
    <?xdofx: if to_number(PRELIM_MONTHS)<12 then 10
    else to_number( ( xdoxslt:get_variable($_XDOCTX,'SUM' )) div (xdoxslt:get_variable($_XDOCTX,'A'))) end if?>
    Now when i m performing the above division between 'SUM' and 'A'. I am not geeting the desired result.pls help..
    Detailed xml is given below:(there is little difference between previous xml and this like star =DATA, AND DATA=QA)
    <DATA>
    <QA>
    <ROWSET>
    <USER1>170702</USER1>
    <START_DATE>12/12/2007</START_DATE>
    <END_DATE>02/02/2008</END_DATE>
    <STATUS1>Prelim</STATUS1>
    <WORKAREA/>
    <SERVICE_GROUP/>
    <LOC>1</LOC>
    <WEIGHT>0-40</WEIGHT>
    <LIST_ROW>
    <ROW>
    <USER_NAME>AKATHMAN</USER_NAME>
    <STAFFID>589089</STAFFID>
    <PRELIM_DATE>12</PRELIM_DATE>
    <PRELIM_MONTHS>12</PRELIM_MONTHS>
    <DOUBLE_DATE>10</DOUBLE_DATE>
    <DOUBLE_MONTHS>7</DOUBLE_MONTHS>
    <QA_DATE>3</QA_DATE>
    <QA_MONTHS>5</QA_MONTHS>
    <GDC_DATE>23</GDC_DATE>
    <GDC_MONTHS>12</GDC_MONTHS>
    <DOWN_HRS>1</DOWN_HRS>
    <COLOR_HRS>1</COLOR_HRS>
    <OPINION_HRS>1</OPINION_HRS>
    <TOTAL_REVIEWED/>
    <TOTAL_DOSSIER>2</TOTAL_DOSSIER>
    <TOTAL_COLORS>0</TOTAL_COLORS>
    <TOTAL_OPINION>0</TOTAL_OPINION>
    <TOTAL_COLORED_DIAMONDS>0</TOTAL_COLORED_DIAMONDS>
    <REVIEWED>0</REVIEWED>
    <TOTAL_PRELIM>67</TOTAL_PRELIM>
    <TOTAL_DOUBLE>10</TOTAL_DOUBLE>
    <TOTAL_TRIPLE>0</TOTAL_TRIPLE>
    <TOTAL_QA>0</TOTAL_QA>
    <TOTAL_GDC>0</TOTAL_GDC>
    <TOTAL_REPORT>67</TOTAL_REPORT>
    <QUALITY_SCORE>0</QUALITY_SCORE>
    </ROW>
    <ROW>
    <USER_NAME>EKWON</USER_NAME>
    <STAFFID>180602</STAFFID>
    <PRELIM_DATE/>
    <PRELIM_MONTHS/>
    <DOUBLE_DATE/>
    <DOUBLE_MONTHS/>
    <QA_DATE/>
    <QA_MONTHS/>
    <GDC_DATE/>
    <GDC_MONTHS/>
    <DOWN_HRS>0</DOWN_HRS>
    <COLOR_HRS>0</COLOR_HRS>
    <OPINION_HRS>0</OPINION_HRS>
    <TOTAL_REVIEWED/>
    <TOTAL_DOSSIER>0</TOTAL_DOSSIER>
    <TOTAL_COLORS>0</TOTAL_COLORS>
    <TOTAL_OPINION>0</TOTAL_OPINION>
    <TOTAL_COLORED_DIAMONDS>0</TOTAL_COLORED_DIAMONDS>
    <REVIEWED>0</REVIEWED>
    <TOTAL_PRELIM>1</TOTAL_PRELIM>
    <TOTAL_DOUBLE>0</TOTAL_DOUBLE>
    <TOTAL_TRIPLE>0</TOTAL_TRIPLE>
    <TOTAL_QA>0</TOTAL_QA>
    <TOTAL_GDC>0</TOTAL_GDC>
    <TOTAL_REPORT>1</TOTAL_REPORT>
    <QUALITY_SCORE>0</QUALITY_SCORE>
    </ROW>
    </LIST_ROW>
    </ROWSET></QA><pocQA><HRMS_DATA_RESPONSE>
    <EMPDETAIL>
    <EMPID>589089</EMPID>
    <REGULAR_TIME>19</REGULAR_TIME>
    <OVER_TIME>4.75</OVER_TIME>
    <MAKEUP_TIME>3</MAKEUP_TIME>
    <DOUBLE_TIME>4.25</DOUBLE_TIME>
    <REDUCED_TIME>1</REDUCED_TIME>
    <UNPAID_TIME/>
    </EMPDETAIL>
    <STATUS></STATUS>
    <ERROR>
    <ERROR_CD/>
    <ERROR_DESC/>
    </ERROR>
    </HRMS_DATA_RESPONSE>
    </pocQA>
    </DATA>

  • Extracting data from a tag of  xml file which is(xml) in a  Field of Csv.

    We have a xlm script which is stored in the clob column of the csv file. we have to extract one value from the <tag> and reject remaining data.
    Sample:-
    <ROW>
    <ID>100</ID>
    <ORDER_DATE>2000.12.20</ORDER_DATE>
    <SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
    <SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
    <SHIPTO_CITY>Redwood City</SHIPTO_CITY>
    <SHIPTO_STATE>CA</SHIPTO_STATE>
    <SHIPTO_ZIP>94065</SHIPTO_ZIP>
    </ROW>
    Required Output:-
    We have to extract the "500 Marine World Parkway"
    from tag <SHIPTO_STREET>
    and the above sample xml file is in one of the column which is clob datatype
    Any idea How to perform the above activity in PL/SQL ?

    As BP suggested you can use an XPATH query to extract that information from your XML. However it depends a bit on your XML data.
    Here are two examples:
    one row XML
    select extractvalue(xmltype('<ROW>
    <ID>100</ID>
    <ORDER_DATE>2000.12.20</ORDER_DATE>
    <SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
    <SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
    <SHIPTO_CITY>Redwood City</SHIPTO_CITY>
    <SHIPTO_STATE>CA</SHIPTO_STATE>
    <SHIPTO_ZIP>94065</SHIPTO_ZIP>
    </ROW>')
    ,'//SHIPTO_STREET/text()') as result
    from dual;
    RESULT
    500 Marine World Parkway
    multi rows XML
    select extractvalue(column_value,'SHIPTO_STREET/text()') as result
    from table(xmlsequence(extract(xmltype('<ROWS>
    <ROW>
      <ID>100</ID>
      <ORDER_DATE>2000.12.20</ORDER_DATE>
      <SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
      <SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
      <SHIPTO_CITY>Redwood City</SHIPTO_CITY>
      <SHIPTO_STATE>CA</SHIPTO_STATE>
      <SHIPTO_ZIP>94065</SHIPTO_ZIP>
    </ROW>
    <ROW>
      <ID>200</ID>
      <ORDER_DATE>2000.12.20</ORDER_DATE>
      <SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
      <SHIPTO_STREET>Test</SHIPTO_STREET>
      <SHIPTO_CITY>Redwood City</SHIPTO_CITY>
      <SHIPTO_STATE>CA</SHIPTO_STATE>
      <SHIPTO_ZIP>94065</SHIPTO_ZIP>
    </ROW>
    </ROWS>'
    ),'ROWS/ROW/SHIPTO_STREET')));
    RESULT
    500 Marine World Parkway
    Test

  • Exporting data from DB to a XML file (in InDesign CS3)

    Hi folks,
    I receive my data from a call to a database in InDesign, then I need to save them in XML file in my local drive, I use Mac OS X but I want to use the same code (as much as possible) shared with the same version of plugin on Windows. I also need to import the data back from XML file (via using script) to the local doc in InDesign later on. Would you please advice me of how to export/import to/from XML file in InDesign's doc. I checked the code in SnpXMLSampleHelper file. Is that the good/best approach to do it in InDesign?
    TIA,
    Nima

    Hi Martin,
                    Check this..u have to explore more for this issue but i think it can help u a bit
    <a href="/people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i:///people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm</a>
    regards
    Sumit

Maybe you are looking for

  • Shut down Mac while Time Machine backs up

    Since I don't always check if Time Machine actually backs up, I was wondering if it matters to shut down your Mac while Time Machine is doing a backup. I guess Apple would make it more obvious, if it would matter, but anyway, does anybody know for su

  • No LOVs in R12

    Hi All, We have upgraded 11i to R12, While running reports we did not find LOVs for most of the reports, we are getting message like " No LOV's for month" could you please assist me in this. Thanks, RED.

  • Import script (SQL to FDM) - ConnectionRead error

    Hi, I have written an import script in FDM to load data from a SQL view. This script works fine when loading approx 5,000 rows, however, fails when trying to load 20k+ rows The error message I am receiving is: Detail: [Microsoft][ODBC SQL Server Driv

  • FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282

    Hi All, while entering data in EAM forcaste workorder in maintenance workbench am getting this error FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282 check google and oracle forums and checked versions of pll and plx (as men

  • Receiving strange error when booting up using Windows Vi

    [size="3" color="#0000ff">When I boot up on my new desktop that has Windows Vista (32 bit) installed I receive a pop up?windown that has a yellow color triangle with "!" make inside of the triangle (I was unable to copy the the window). The only butt