Can i get the content of a HTML tag?

I would like knowing if it is possible,
instead of getting all the document where the searched string is found,
i can get only the content of a tag
in other words, I have defined the following index:
CTX_DDL.CREATE_SECTION_GROUP('htmlgroup', 'HTML_SECTION_GROUP');
CTX_DDL.ADD_ZONE_SECTION('htmlgroup', 'titulo', 'TITLE');
CREATE INDEX index_string ON table(field_to_indexing)
INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('SECTION GROUP htmlgroup');
SELECT field FROM table WHERE CONTAINS('searching string' WITHIN titulo) > 0;
The index works just fine and makes the searching correctly, but it returns back the whole document,
and I wanted it to return just the content of the TITLE tag. I would like to know if this is possible.

It is possible if you are using the XMLType operators available in 9i. A short article describe this approach http://otn.oracle.com/products/oracle9i/daily/nov30.html
Now, if you are not using 9i you can still do it but at the application level. You need to get a "chunk" of the document and then perform
substring searching to extract the content of the title tag.
I would like knowing if it is possible,
instead of getting all the document where the searched string is found,
i can get only the content of a tag
in other words, I have defined the following index:
CTX_DDL.CREATE_SECTION_GROUP('htmlgroup', 'HTML_SECTION_GROUP');
CTX_DDL.ADD_ZONE_SECTION('htmlgroup', 'titulo', 'TITLE');
CREATE INDEX index_string ON table(field_to_indexing)
INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('SECTION GROUP htmlgroup');
SELECT field FROM table WHERE CONTAINS('searching string' WITHIN titulo) > 0;
The index works just fine and makes the searching correctly, but it returns back the whole document,
and I wanted it to return just the content of the TITLE tag. I would like to know if this is possible.

Similar Messages

  • How can i get the content of JTextArea with out loosing Indentation.

    I am developing one mail sending application. I am getting mailid , from address, mail body from one Swing. In one JTextArea i am typing i have typed some matter. When i call the content of JTextArea using
    jtx.getText() method, i am getting all the content as one paragraph. That means there is no indentation which was there in TextArea.
    Please provide me some solution how can i get the content of JTextArea wiht out loosing indentation.

    And it was you who asked the question!

  • My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

    My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

    My iTunes library is on an old PC that no longer works. I purchased a new iPod Touch.  How can I get the contents of my library to the new iPod?

  • TS3648 great, but my MBA did not come with an installion disc, only a tiny jump drive that is not recognized by windows; and I can't get the contents of that burned to a DVD either. So how the heck do I get the drivers into Windows 7? My MBA has bootcamp

    great, but my MBA did not come with an installion disc, only a tiny jump drive that is not recognized by windows; and I can't get the contents of that burned to a DVD either. So how the heck do I get the drivers into Windows 7? My MBA has bootcamp 3.0.4.

    Here's what I get:
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0 mtu 1280
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:11:24:7d:e7:1e
    media: autoselect (none) status: inactive
    supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback>
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::211:24ff:fe28:2e71%en1 prefixlen 64 scopeid 0x5
    inet 169.254.115.141 netmask 0xffff0000 broadcast 169.254.255.255
    ether 00:11:24:28:2e:71
    media: autoselect status: active
    supported media: autoselect
    fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
    lladdr 00:11:24:ff:fe:7d:e7:1e
    media: autoselect <full-duplex> status: inactive
    supported media: autoselect <full-duplex>

  • I can,t get the content pallete to open so that i can chose backgrounds themes etc

    I can,t get the content pallette to open so I can chose backgrounds themes ect

    Are you:
    double-clicking?
    clicking the effect and clicking Apply?
    dragging the effect thumbnail to the image?
    Is this everything in the palette or only a few things? If you can't apply filters from the palette, do they work from the Filter menu?

  • Key in registry – how can I get the content?

    Hello!
    Key in registry: I need all sub-keys that exist in this key. How can I get the list?
    Thanks!

    reg is a command line tool in windows that allows you to query the registry. You can use it to query any part of the windows registry. Once you know what query string you will need to query the entry you want, you can use ProcessBuilder to build the command line command you want to run. In your Java code, you will then need to run an external application (reg) with its arguments. ProcessBuilder is a class which makes this task easier.

  • Can't get the content div to extend beneath the last div

    Once again, I seek help for my site www.acemon.com
    I can't get .content to extend below the last div. When you look at the site, you can see the last box (titled "for realtors") is surrounded by the .container color instead of the .content color.

    You have an extra div at clickhere and clickhere2:
    <div class="clickhere">
           <a href="premium.html">
           <img src="Images/click-sample.png" alt="Value2" width="150" height="50" /></a></div>
           </div> <!--end of .clickhere-->
    </div> <!--end of .choice-->
    <div class="clickhere2">
           <a href="value.html">
           <img src="Images/click-realtor.png" alt="Realtors" width="152" height="50" /></a></div>
           </div> <!--end of .clickhere-->
           </div> <!--end of .choice-->
    Then, replace:
    </div> <!--end of .clickhere-->
           </div> <!--end of .choice-->
    <!-- </div> end of .content-->
    <!-- </div> end of .container-->
    with this at the bottom:
    </div> <!--end of .clickhere-->
           </div> <!--end of .choice-->
    </div><!--  end of .content-->
    </div><!--  end of .container-->
    i.e. put the divs outside the comments.
    This should then validate.

  • How can I get the content for PREM eL 11?

    Win 8 64bit, when I try to get a DVD theme, it will start downloading for a long time. The end.

    JD9510
    The only way to get the full Content for Premiere Elements 11 and 12 is from within the programs.
    The process can be slow depending on the Internet connection and the Adobe server.
    I wrote about this for version 11 in a blog post.
    http://atr935.blogspot.com/2013/05/pe11-no-content-disc-content-downloads.html
    Although there are some here who may say that what you are experiencing is unusual. I have always found obtaining Premiere Elements 11 and 12 Content to be slow and labored.
    Right now, have patience, download one at a time, try again at different times.
    Please let us know the outcome.
    Thanks.
    ATR

  • How can i get the value from a HTML Form

    hi,
    I am using HTML form (logfrm). there are userId field,password field, submit button,reset button, and a link.
    when i click on the link, it should fetch the value of userid.
    How it is possible?
    AE

    use jsp:
    which lets you embed java statments in your html -so you when you click on the link you can use request.getParameter("userID") to get the userid.
    Ideally with html forms use a combination of jsp and java beans, where the fields in the form are also fields in your java bean, which you can access through setters and getters.
    google for some jsp tutorials.

  • How can I get the content of a text element to insert in a different block

    I have two blocks. The first one (block_control) is a non based block with a text element (EXERCICE). When I go to the second block (block_data) and I want to insert a new record, I need in my record the value of EXERCICE who is in the first block (block_control). How can I get this balue if I want to be able to do an execute_query too on the second block ? Because if I use pre-block or post-block or when-new-record-instance trigger to make the content of EXERCICE follow from block_control to block_data in a hidden field, I can't execute_query.
    Thank's

    First , when you want to insert a record in the second block , override the default commit_form processing and create a commit-form trigger which is called by a button to commit your form. The when-button-pressed trigger of this button should be : do_key('commit_form'); . And you create the key-commit trigger on the second block. Inside the key-commit trigger write this :
    :second_block.item_name := name_in('block_control_name.exercice');
    commit_form;
    In this way you get the exercice data into your record.
    Secondly, in the post-query trigger of the second block, set the exercice column of the second block to the exercice column of the block_control.
    And that's it.

  • Getting the content of an HTML page?

    Hi,
    I'd like to know how I can connect to an HTML page and then put the content of the page in a String object.
    Could someone help me?
    Thanks,
    Roming

    Something like:
                    HttpURLConnection conn = null;
              try {           
                   conn = (HttpURLConnection) new URL("http://forum.java.sun.com/thread.jsp?forum=54&thread=542277&tstart=0&trange=15").openConnection();
                   InputStream inputStream = conn.getInputStream();
                   BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));               
                   String line = null;                    
                   while ((line = br.readLine()) != null) {
                        System.out.println(line);               
              } catch (MalformedURLException murle) {
                      murle.printStackTrace();
              } catch (IOException ioe) {
                   ioe.printStackTrace();
              } finally {
                   if (conn != null) conn.disconnect();
              }          

  • How can I get the content of clob in oracle db?

    In jsp,if I want to get the characters from CLOB column in ORACLE DataBase,what should I do?
    I am waiting for the answer hurrily.Thank you!

    import these two classes:
    import oracle.sql.CLOB;
    import oracle.jdbc.driver.OracleResultSet;To retrieve the clob, use
                  ResultSet rs;
                      get the rs from database
                  int i = 1;  //  this is the column Index in the rs
                  CLOB cl = ((OracleResultSet)rs).getCLOB(i);
                  int len = (int)cl.length();
                  String str = cl.getSubString(1,len);

  • HT1349 how can I get the contents from my I pod on to my  new computer apple library

    My old computer broke down with everything on it. Now having a new one I don't know how to get my music and photos on my new apple library on my current computer. I would appreciate any ideas how to achieve this without loosing anything from my I pod. Thanks

    Music is intended to go one way: from your computer to the iPod. Going the other way is contrary to the design and is not trivial.
    If you had a Mac and its hard disk failed, you would use Time Machine to restore its contents to a replacement disk. A disk failure would be a non-event. If you replaced your Windows computer with another Windows computer another failure is just a matter of time.
    See this old post: https://discussions.apple.com/thread/2452022
    Since it is so dated some of the links may not work.
    iTunes will only give you the option to copy your iTunes Store purchases directly from an iPod to the computer, you'll find details in this article: Copying iTunes Store purchases from your iPod or iPhone to a computer
    For everything else (music from CDs, other downloads etc) there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. You can read reviews and comparisons of some of them here:
    iTunes & iPod software
    Wired News - Rescue Your Stranded Tunes
    Comparison of iPod managers
    A selection of iPod to iTunes utilities:
    TuneJack Windows Only (iPhone and iPod Touch compatible)
    SharePod Windows Only (iPhone and iPod Touch compatible)
    iPod2PC Windows Only
    iDump Windows Only
    YamiPod Mac and Windows
    iPod Music Liberator Mac & Windows
    Floola Mac & Windows
    iPodRip Mac & Windows (iPhone and iPod Touch compatible)
    iPod Music Liberator Mac & Windows (iPhone and iPod Touch compatible)
    Music Rescue Mac & Windows (iPhone and iPod Touch compatible)
    iGadget Mac & Windows (iPhone and iPod Touch compatible)
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    TouchCopy Mac & Windows (iPhone and iPod Touch compatible)
    There's also a manual method of copying songs from your iPod to a Mac or PC. The procedure is a bit involved and won't recover playlists but if you're interested it's available on page 2 at this link: Copying Content from your iPod to your Computer - The Definitive Guide
    How to use your iPod to move your music to a new computer (does not apply to the iPod Touch)

  • Can i get the report output in HTML format?

    Hello everybody,
    I have developed a report whose output needs to be printed in HTML format.
    Can anybody suugest how this can be accomplished by coding in program itself using any function modules if necesary?
    Helpful answers will surely be rewarded.
    Thanx in advance,
    Sanghamitra.

    refer the below code
    Generate an HTML file from a Report in ABAP
    data: begin of itab occurs 0,
          matnr type mara-matnr,
          mtart type mara-mtart,
          matkl type mara-matkl,
          groes type mara-groes,
          end of itab.
    data: ifields type table of w3fields with header line.
    data: ihtml   type table of w3html   with header line.
    select * into corresponding fields of table itab
              from mara up to 100 rows.
    call function 'WWW_ITAB_TO_HTML'
    EXPORTING
      TABLE_ATTRIBUTES       = 'BORDER=1'
      TABLE_HEADER           =
        ALL_FIELDS             = 'X'
      tables
        html                   = ihtml
        fields                 = ifields
      ROW_HEADER             =
        itable                 = itab
    check sy-subrc = 0.
    call function 'GUI_DOWNLOAD'
         exporting          filename = 'c:\test.html'
         tables          data_tab = ihtml
    or for conerting internal table data into html
    See below simple report to convert the internal table data to a HTML format data and stores in a internal table and then pass that internal table as an attachment to the external email using function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    You need for create a spool also.
    REPORT Z_HTML .
    include <icon>.
    types: begin of msg,
    type like icon-id,
    text(140) type c,
    end of msg.
    constants: gc_marked type c value 'X',
    gc_ok like icon-id value '@5B@'.
    data:
    gt_msg type standard table of msg,
    gs_msg like line of gt_msg,
    gv_msg(138) type c,
    *-- html
    html_container type ref to cl_gui_custom_container,
    html_control type ref to cl_gui_html_viewer,
    my_row_header like w3head occurs 10 with header line,
    my_fields like w3fields occurs 10 with header line,
    my_header like w3head,
    my_html type standard table of w3html ,
    ok_code like sy-ucomm.
    Start of Selection *
    start-of-selection.
    clear gv_msg.
    gv_msg = 'MESSAGES for HTML'.
    do 3 times.
    perform message using gc_ok gv_msg .
    enddo.
    End of Selection *
    end-of-selection.
    set screen 0100.
    *& Form message
    form message using p_type
    p_text.
    clear gs_msg.
    gs_msg-type = p_type.
    gs_msg-text = p_text.
    append gs_msg to gt_msg.
    endform. " MESSAGE
    *& Module STATUS_0100 OUTPUT
    module status_0100 output.
    perform convert_itab_html.
    set titlebar '100' .
    set pf-status 'MAIN100'.
    create object html_container
    exporting
    container_name = 'CONTAINER'.
    create object html_control
    exporting
    parent = html_container
    saphtmlp = gc_marked .
    data: assigned_url type url.
    call method html_control->load_data
    EXPORTING
    URL = url
    TYPE = 'text'
    SUBTYPE = 'html'
    SIZE = 0
    ENCODING =
    CHARSET =
    importing
    assigned_url = assigned_url
    changing
    data_table = my_html
    EXCEPTIONS
    DP_INVALID_PARAMETER = 1
    DP_ERROR_GENERAL = 2
    CNTL_ERROR = 3
    others = 4
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call method html_control->show_url
    exporting
    url = assigned_url
    FRAME =
    IN_PLACE = ' X'
    EXCEPTIONS
    CNTL_ERROR = 1
    CNHT_ERROR_NOT_ALLOWED = 2
    CNHT_ERROR_PARAMETER = 3
    DP_ERROR_GENERAL = 4
    others = 5
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endmodule. " STATUS_0100 OUTPUT
    *& Module exit INPUT
    module exit input.
    leave program.
    endmodule. " exit INPUT
    *& Module user_command_0100 INPUT
    text
    module user_command_0100 input.
    case ok_code.
    when 'EXIT' or 'BACK'.
    leave program.
    when others.
    call method cl_gui_cfw=>dispatch.
    endcase.
    endmodule. " user_command_0100 INPUT
    *& Form convert_itab_html
    form convert_itab_html.
    data: lv_tabix like sy-tabix.
    *-- table header
    call function 'WWW_ITAB_TO_HTML_HEADERS'
    exporting
    field_nr = 1
    text = 'Type'
    fgcolor = 'navy'
    bgcolor = 'red'
    font = 'Arial'
    tables
    header = my_row_header.
    call function 'WWW_ITAB_TO_HTML_HEADERS'
    exporting
    field_nr = 2
    text = 'Message'
    fgcolor = 'navy'
    bgcolor = 'red'
    font = 'Arial'
    tables
    header = my_row_header.
    *-- table rows
    clear lv_tabix.
    loop at gt_msg into gs_msg.
    lv_tabix = sy-tabix.
    call function 'WWW_ITAB_TO_HTML_LAYOUT'
    exporting
    field_nr = 1
    line_nr = lv_tabix
    icon = gc_marked
    tables
    fields = my_fields.
    call function 'WWW_ITAB_TO_HTML_LAYOUT'
    exporting
    field_nr = 2
    line_nr = lv_tabix
    fgcolor = 'red'
    bgcolor = 'black'
    font = 'Arial'
    size = '2'
    tables
    fields = my_fields.
    endloop.
    *-- header
    move 'Messages during program run' to my_header-text.
    move 'Arial' to my_header-font.
    move '2' to my_header-size.
    move 'Centered' to my_header-just.
    move 'red' to my_header-bg_color.
    move 'blue' to my_header-fg_color.
    refresh my_html.
    call function 'WWW_ITAB_TO_HTML'
    exporting
    table_header = my_header
    all_fields = ' '
    tables
    html = my_html
    fields = my_fields
    row_header = my_row_header
    itable = gt_msg.
    endform. "convert_itab_html
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Can you get the contents of a directory?

    Is there anything in flash that will allow reading of a
    directory structure, so for example a bunch of .jpgs/.swfs are
    sitting in a directory it will read these in and display them
    through the flashplayer?
    I'm currently using XML to do the job but it has been asked
    of me to work without the XML so no editing is required!
    cheers

    Thanks Rabid,
    Not really what I wanted to hear but suspected it wasn't
    possible due to security issues etc... Shame that some simple
    functionality can't be trusted!!!
    Might look into this coldFusion but it's certainly not a
    priority :o)
    cheers

Maybe you are looking for

  • 5200fx Td128

    Well I bought two of these cards, one for each of my computers. I didnt want to spend much on graphics cards, I never have and never will. Actually display wise and fps they do good enough for me. I would be completely happy with them except for the

  • Abstract class implements Cloneable... How?

    I have an abstract class that is inherited by many many subclasses. I wish to make this abstract class a cloneable. Most of the subclasses are using the protected fields inherited from the abstract one, they almost never add any extra field. So it wo

  • I use my I mac every day what is the best way to shut it down?

    I use my imac every day. What is the best way to shut it down? Do I let it sleep or manually shut it down?

  • An Error Occurs When I Go To "Build Properties-- Icon" -- Custom Icon Build Fails

    LV 2011 Mac OS X 10.6.8 1. Create a new Build Specification using the Application Builder. 2. Click on the "Icon" tab. The following error occurs: Three possible outcomes from here: 1.  Usually LV2011 hangs when changing this option.  (i.e. "time to

  • Deactivating Adobe 8.1 Professional

    I downloaded Adobe Acrobat 8.1.0 Professional 2 weeks ago for a 30 day trial and now everytime I go to any of my documents, even Word, the adobe acrobat page pops up telling me to buy, put in serial number or quit. Then the page I'm trying to work on