Parsing XML and pulling out results rows only

All,
I need a bit of direction here, hopefully someone can help.
Here is the situation..
I have a Web Template that has the XML dataprovider only. Meaning, when I execute it, I get a blank screen because I am not using any other item. This is expected.
The query works as designed and the XML data in the source of the web page is correct.
Now, I want to be able to read (loop thru the XML data) and display the data in an HTML table for display to the end user. (Actually, I would like to only keep the "REsults Rows" from the XML data)
Does anyone have any javascript/XSL/etc that takes the data from a web template, via the XML dataprovider function, and is able to process the data (XML data) and display as an HTML table on the same page?
I am having a hard time finding any information on reading an XML dataset from the WAD and displaying it with any sort of success.
I found lots of weblogs and threads about some similiar functionality, but it wasn't exactly what I was looking for.
Here are some of the links I found..
Re: XML Data Provider - Information
I also found other threads from here, but none of them was exactly what I was looking for...(They were along the same lines as the first link!)
I hope someone can help me out. Due points and my ever gratitude to whomever can help me on this one!
Cheers!
/smw

1. Learn basic web service interfacing. The type of data is irrelevant.
2. Learn how to parse XML.
3. Learn how jdbc works.
4. Learn how the protocol of your actual hosting company works.
5. Put the above steps together to create your app.
Steps 1, 2 and 3 are independent from each other.

Similar Messages

  • My I-Pad screen is black, I tried to sync and restore I-Pad, it showes the contents on the computer and pulling out pictures and other files, but screen is black. what can I do?

    My I-Pad screen is black!! I tried to sync and restore I-Pad, it showes the contents on the computer and pulling out pictures and other files, but screen is black. I don't know what happened! what can I do?

    I have this problem as well...however, resetting/restoring did not take place when I followed the same instructions but got nothing on the screen.  Thanks in advance.

  • Display only the result rows only by using condition or any other way

    Hello Everybody,
    I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
    I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
    Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
    Any help would be greatly appreciated.
    Thanks
    Alok

    Please explain when you say
    "I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
    What is problem there? What result do you get. If possible please provide  details of columns layout and few numbers

  • Parsing XML and HTML

    Is there any way to parse a XML file and covert it to a result set using SQL and PLSQL?

    Yes. Oracle SQL and PL/SQL can use the Oracle supplied XML Parser to create XML and to extract attributes and rows from XML.
    Refer to [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14259/toc.htm]Oracle® XML DB Developer's Guide.

  • Parsing XML and Storing values in instance variable

    hi,
    i'm new to XML.
    here i'm trying to parse an XML and store their element data to the instance variable.
    in my main method i'm tried to print the instance variable. but it shows "" (ie it print nothing ).
    i know the reason, its becas of the the endElement() event generated and it invokes the characters() and assigns "" to the instance variable.
    my main perspective is to store the element data in instance variable.
    thanks in advance.
    praks
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    public class mysax extends DefaultHandler
         String ctelement;
         CharArrayWriter contents;
         String vname1,vrcbreg1,vaddress1,vcountry1,vtelephone1,vfax1;
         String vname,vrcbreg,vaddress,vcountry,vtelephone,vfax;
         public mysax()
              vname1 = null;
              vrcbreg1 = null;
              vaddress1 = null;
              vcountry1 = null;
              vtelephone1 = null;
              vfax1 = null;
              contents= new CharArrayWriter();
         public void doparse(String url) throws Exception
              SAXParserFactory spf = SAXParserFactory.newInstance();
    SAXParser sp = spf.newSAXParser();
    ParserAdapter pa = new ParserAdapter(sp.getParser());
    pa.setContentHandler(this);
    pa.parse(url);          
         public void startElement(String namespace,String localName,String qName,Attributes atts)
              ctelement = localName;     
         public void endElement(String uri,String localName,String qName) throws SAXException
         public void characters(char[] ch,int start, int length) throws SAXException
              try
                   if(ctelement.equals("name"))
                        vname = new String (ch,start,length);
                        System.out.println("The method "+vname1);
              }catch (Exception e)
                   System.out.println("The exception "+e);
         public static void main(String args[])
              try
              mysax ms = new mysax();
              ms.doparse(args[0]);
              System.out.println("the contents name "+ms.vname1);
              catch(Exception e)
                   System.out.println("this is exception at main" +e);
    my XML looks like
    <coyprofile_result>
    <company>     
    <name>abcTech</name>
    <rcbreg>123456789</rcbreg>
    <address>Singapore</address>
    <country>sg</country>
    <telephone>123456</telephone>
    <fax>123155</fax>
    </company>
    </coyprofile_result>

    I believe that the problem has to do with the value you assign to ctelement. You are assigning the value of localName to ctElement, however for the element: <name>...</name> the localname is empty string i.e. "", but qName equals "name". Because you are assigning empty string to ctElement, when you do the comparison in characters of ctElement to "name" it will always be false. So in startElement change it to ctElement = qName; Try it and see if it works. I have produced similar programs and it works for me.
    Hope this helps.

  • Parse XML and Output to JSP page

    I have a number of XML documents which are all formatted in the same way, just with different information in the fields.
    I wish to parse the XML documents using DOM and output them to an XML page.
    How would i go about doing this?
    If you could write a small example or any websites that you think might help.
    Thanks.

    I have the parsing working but i cant seem to figure out how to get information out of the parsed document and into variables.
    This is a sample of my XML file
    <?xml version="1.0"?>
    <product code="QB-1226-AB">
         <productName>Professional Floodlights</productName>
         <description>PIR floodlights that are designed for professional installation. A faulty light requiring a return visit will cost far more than a quality light does in the first place. 3 year guarantee.</description>
         <price>120</price>
         <manufacturer>Black and Decker</manufacturer>
    </product>I can get the productCode value out without any problems using
    String name = attrs.getValue("code");
    But if i try the same for any of the others i get null. I can accomplish this using DOM easily but i cant find anything at all about getting values out of it using SAX.
    Any help would be greatly appreciated.

  • How change state when card is inserted and pulled out

    It is not Java Card question, but I think it is better place to post question like this. I have running Java Card applet on card, the communication between card and host application works, but could you anybody tell me how handle inserting and pulling card out? My idea is, I have running Java 6 SE application:
    1. and I will insert the card into a reader and application will automatically find out that card was inserted and write out it.
    2. and I will pull out the card from a reader and application will automatically find out that card was pulled out and write out it.
    Could you anybody help me, please?
    Thank you very much for any answer.
    Martin

    mFilo wrote:
    It is not Java Card question, but I think it is better place to post question like this. I have running Java Card applet on card, the communication between card and host application works, but could you anybody tell me how handle inserting and pulling card out? My idea is, I have running Java 6 SE application:
    1. and I will insert the card into a reader and application will automatically find out that card was inserted and write out it.
    2. and I will pull out the card from a reader and application will automatically find out that card was pulled out and write out it.I think you can address only terminals. A way to identify a card is with additional info like ATR, CPLC data or specific applet's file control information (response to select command). I found in javax.smartcardio.CardTerminals following methods that might help:
    waitForChange
    public void waitForChange()
                       throws CardException
        Waits for card insertion or removal in any of the terminals of this object.
        This call is equivalent to calling waitForChange(0).
        Throws:
            IllegalStateException - if this CardTerminals object does not contain any terminals
            CardException - if the card operation failed
    waitForChange
    public abstract boolean waitForChange(long timeout)
                                   throws CardException
        Waits for card insertion or removal in any of the terminals of this object or until the timeout expires.
        This method examines each CardTerminal of this object. If a card was inserted into or removed from a CardTerminal since the previous call to waitForChange(), it returns immediately. Otherwise, or if this is the first call to waitForChange() on this object, it blocks until a card is inserted into or removed from a CardTerminal.
        If timeout is greater than 0, the method returns after timeout milliseconds even if there is no change in state. In that case, this method returns false; otherwise it returns true.
        This method is often used in a loop in combination with list(State.CARD_INSERTION), for example:
          TerminalFactory factory = ...;
          CardTerminals terminals = factory.terminals();
          while (true) {
              for (CardTerminal terminal : terminals.list(CARD_INSERTION)) {
                  // examine Card in terminal, return if it matches
              terminals.waitForChange();
        Parameters:
            timeout - if positive, block for up to timeout milliseconds; if zero, block indefinitely; must not be negative
        Returns:
            false if the method returns due to an expired timeout, true otherwise.
        Throws:
            IllegalStateException - if this CardTerminals object does not contain any terminals
            IllegalArgumentException - if timeout is negative
            CardException - if the card operation failed

  • Change background and font for first row only?

    Hi, 
    Have a tablix in SSRS (2008R2) and would like to change the background colour and font for the first row only, is this possible and if so how would I achieve this? 
    I have followed and example on setting alternate row background colour in the properties but can't see how to do this for just the first row. 
    =IIF(RowNumber(Nothing) MOD 2,”LightGrey”, “LightBlue”)
    Thanks 

    Hello,
    The Expression uses a Modulo function to calculate every second row. In your case just compare with equal 1 for the first row:
    =IIF(RowNumber(Nothing) = 1, ”LightGrey”, “LightBlue”)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Query designer and Standard deviation result rows

    Hello everyone,
    Here is my problem.
    I have a key figure for which I do not want any decimals. So in the Number Format : Number of Decimal Places = 0.
    I thought the result rows would follow the same rules by not displaying any decimals.
    But using the Calculate Result as ... "Standard Deviation", even though my key figure is define with no decimals, the result row displays 5 decimals anyway ! 
    Why? and is there any way I can suppress the decimals of my results rows with a Standard Deviation 
    Thx
    JBF
    Edited by: Jean-Baptiste Faubert on Jan 16, 2008 2:56 PM

    Hello Jean,
    First I would try to unmark flag 'Use default Settings' below Number of Decimal Places in Query Designer.
    If this doesn't help you could set Decimal Places in the Provider specific Properties in Key Figure of the MultiProvider used from 'Not defined' to 0.
    Also you could change the number of decimals in InfoObject maintainance of used Key Figure (in RSA1).
    But then you have to check other queries where this Key Figure is used.
    Kind regards
    Klaus

  • How to parse xml and import to execel

    pls let me know how to parse XML file and import all data to execel sheet.

    Hi Mandya,
    This is outside of the normal use case for TestStand. It would be best to use a code module (developed in LabVIEW, C, or any other language) to accomlish this and then call it from a step in TestStand. You can find examples on ActiveX here:
    http://forums.ni.com/t5/NI-TestStand/Controlling-Excel-from-TestStand-with-Activex-Automation/td-p/1...
    I hope this helps.
    Frank L.
    Software Product Manager
    National Instruments

  • USB wire has hooks on it and pulls out female end on 9860 for charging

    Has anyone had this problem
    Cannot charge my 9860.
    Male end of mini USB loose in phone
    mini USB male end has 2 hooks and has pulled out female receptor??
    Help I have no life in my Blackberry

    - Try another cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store. You can still go if your country has Genius Bars
      Apple Retail Store - Genius Bar                 

  • ALV: how to disable editable cell and F4 in certain rows only.

    I am building a table maintenance front-end with an ALV grid using OOP concept.  Certain fields are editable and also have customised search helps assigned to them in the ALV structure defined for the grid. What I want is where I have identified an entry in my database table as being locked by another user, I want to grey the line out on the ALV grid so that the entry cannot be edited and not have f4 input whilst this entry is locked by another user.
    I can grey the line out or disable F4 but not both at the same time.  If I disable the cells of the row concerned using MC_STYLE_DISABLED, the F4 is still active and will change the contents of the cell concerned via the data_changed event method in CL_GUI_ALV_GRID.
    I have used MC_STYLE_DISABLED where I have declared  a layout in my table similiar to this:
    DATA: BEGIN OF OUTPUT OCCURS 0,
    FIELD1,
    FIELD2,
    STYLE TYPE LVC_T_STYL,
    LOCK TYPE C.
    END OF OUTPUT.
    DATA: ls_celltab TYPE lvc_s_styl.
    * Where lock identified, field LOCK set to 'X'.
    LOOP AT OUTPUT where lock = 'X'.
    ls_celltab-fieldname = 'FIELD1'.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
    APPEND ls_celltab TO OUTPUT-STYLE.
    ls_celltab-fieldname = 'FIELD2'.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
    APPEND ls_celltab TO OUTPUT-STYLE.
    ENDIF.
    append OUTPUT.
    I have tried adding MC_STYLE_F4_NO to field LS_CELLTAB-STYLE2 but this does not do both actions atthe same time.
    Can anyone suggest what I might be doing wrong or an alternative way around this?
    Many thanks
    Regards
    Larissa

    As I have explained, I have fields that are editable AND are F4 enabled.  What I want is for certain rows of the ALV that I do not want any procesing to occur to make all fields in that row not available for input AND not f4 enabled.  I read a lock using a lock object.  If the entry in my ALV matches the key locked in the lock object, I want that line to be in display mode only in the ALV with no F4 help being able to be called.  It happens on the grid frontend when I press enter and have checked if any of my entries in my ALV are already locked by another user. The code is too long to post here. I can disbale the editable fields using MC_STYLE_DISABLED as described above but then the little drop down to enable F4 input is still visible against the field. 
    I have got round it by calling the f4 in event HANDLE_ON_F4 to not go via the search help and set er_event_data->m_event_handled = c_yes so that the F4 hit list does not appear, but I want to get rid of the drop down marker in that field in that instance.
    Hope this is a little clearer now.
    Larissa

  • How to parse XML and store the data in  tables using sql or plsql?

    I want to parse the xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xmlListWrapper>
        <size>2</size>
    <AppTypeID>10</AppTypeID>
    </xmlListWrapper>
    and store in a table
    |pk|apptypeid|
    1     10

    You can extract data from your XML along these lines...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      2  <xmlListWrapper>
      3    <size>2</size>
      4    <AppTypeID>10</AppTypeID>
      5    <AppTypeID>20</AppTypeID>
      6  </xmlListWrapper>') as xml from dual)
      7  --
      8  -- end of example data
      9  --
    10  select x.*
    11  from   t
    12        ,xmltable('/xmlListWrapper/AppTypeID'
    13                  passing t.xml
    14                  columns pk for ordinality
    15                         ,apptypeid number path '.'
    16*                ) x
    SQL> /
            PK  APPTYPEID
             1         10
             2         20
    SQL>
    Inserting it to a table is obviously achieved using an INSERT ... SELECT ... where the SELECT is extracting the data from the XML.

  • Passing / parsing XML String IN / OUT from PL / SQL package

    Hello, People !
    I am wondering where can I find exact info (with code sample) about following :
    We use Oracle 8.1.6 and 8.1.7. I need to pass an XML String (could be from VARCHAR2 to CLOB) from VB 6.0 to PL/SQL package. Then I need to use built in PL/SQL XML parser to parse given string (could be large hierarchy of nodes)
    and the return some kind of cursor thru I can loop and insert data into
    different db Tables. (The return value may have complex parent/child data relationship - so I am not sure If this should be a cursor)
    I looked online many site for related info - can't find what I am looking
    for - seems like should be a common question.
    Thanx a lot !

    Hello, People !
    I am wondering where can I find exact info (with code sample) about following :
    We use Oracle 8.1.6 and 8.1.7. I need to pass an XML String (could be from VARCHAR2 to CLOB) from VB 6.0 to PL/SQL package. Then I need to use built in PL/SQL XML parser to parse given string (could be large hierarchy of nodes)
    and the return some kind of cursor thru I can loop and insert data into
    different db Tables. (The return value may have complex parent/child data relationship - so I am not sure If this should be a cursor)
    I looked online many site for related info - can't find what I am looking
    for - seems like should be a common question.
    Thanx a lot !

  • Have a kin twom and found out that although only about a year old, Verizon no longer supports.

    Is this true?  Can I get a replacement?  Why wasn't I notified about the support being pulled for a phone that is fairly new???????  Would take any other phone actually as long as I don't need a data plan.  Don't care about op sys, etc...  Just need to replace a broken phone and wanted to use this one, but now that its not supported, I can't for example transfer contacts (I have HUNDREDS!) or download any apps...  What is Verizon doing about this for Kin users???
    <Moved from Windows Phone to KIN for more exposure.>
    Message was edited by: Verizon Moderator

    If it comes down to needing a replacement, a customer service rep can tell you at that time if it's available. Though the Kin devices are no longer sold online, Verizon may still have stock set aside for replacements.
    As you probably know, this was the only feature phone with Wi-Fi sold by Verizon. When the Kin devices didn't sell well as smartphones, they were rereleased with modified software to get rid of overstock. If having no data plan plus Wi-Fi is important to you and you can't get a Kin through Verizon, you may want to look on eBay or other sites too for replacement KinM devices.
    As far as being supported, the KinM devices never worked with Backup Assistant, but a rep can transfer your contacts in a corporate Verizon store. And when the KinM was rereleased as a feature phone, the Kin Studio, syncing services and other apps were never available on the M models.
    So, to answer your last question, what is Verizon doing for Kin users ... it's the same as any other phone in the fast-paced world of technology ... Verizon will replace it as long as there's stock left on the shelves. Good luck.

Maybe you are looking for

  • Problem with preloader from tutorial in flash 8

    when i open preloader in flash 8 from section developers for flash, it dosn't work. and trace message but in mx 2004 work ok what problem? **Error** C:\Documents and Settings\Артем\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\C

  • How to realign elements of an array? Working with old Dynamic Data consumers

    Hello, I've got some code which was written with DAQ assistants years ago.  I'm trying to use tasks and arrays for my producer now for speed and efficiency, but I'm stumped on one thing. The consumers were written to have the data in a certain order

  • My internet's really slow and it's only two months old.

    My internet was pretty fast, and now it's really slow, i don't know if it's because of my wifi or what. But i had downloaded lots of tv show videos and I am thinking that it's happened because of that. But i think if i do delete the videos for good,

  • Administrative console doesn't seem to work

    I've just installed appserver7 on windows 2000 professional sp2. (256mb, P3 733MHz). Everything seems to work quite fine, application server and administrative server are up. I can connect to localhost:4848, will be asked for passw and login, can get

  • Blurred text in image - Photoshop - iPad

    For some reason, the iPad blurs the text in images which have been created in Photoshop as a text overlay, then exported out as a png or jpeg file (using maximum quality). I use text overlays when it is not appropriate to upload an image and then wri