How to examine HTML source for keywords

Hello!
My problem is the following. I'm new on java programming and programming general.
I want to examine a HTML source code after special keywords.
So ive used the URL class to get the html code and saved it in a bufferedReader and then in a string
If i have the following html source i.e., I only want to have the words: Action, Science-Fiction and Thriller. But these words only 1 time, so not the word action i.e. in , but the word action behind it.
<tr valign="top">
<td nowrap>
<font face="Arial,Helvetica,sans-serif" size="2" class="Normal">Genre(s):
</font>
</td>
<td>��</td>
<td nowrap>
<font face="Arial,Helvetica,sans-serif" size="2" class="Daten">
<b>
Action
<br>Science-Fiction
<br>
Thriller
<br></b></font></td>
</tr>
How can i do this at the best way??
My first idea was to usw the stringtokenizer but there is no really universal way to search for some words etc.??
It is maybe even possible to look fot the html tag with the word genre in it to use after this the next string who is not int the html code??
I.e:
i am searching for genre and found:
and after this i want to usw the string "thriller" who stands behind it! is this possible??
One of the big problems for me is also that there are no spaced sonetimes between the tags and the string and sometimes there are still spaces.
Hope to get good help and sorry for my maybe not very understandable questions and my bad english :)
big thx!!!

Ok, lets say if have this part of code:
<table border="0"><tr valign="top"><td>
<a name="poster" href="photogallery"><img border="0" alt="cover" src="http://ia.imdb.com/media/imdb/01/I/38/48/31m.jpg" height="140" width="99"></a>
</td><td width="90%">
<b class="blackcatheader">Directed by</b><br>
<a href="/name/nm0905152/">Andy Wachowski</a><br><a href="/name/nm0905154/">Larry Wachowski</a><br>
<br>
<b class="blackcatheader">Writing credits</b>
<small>(<a href="/wga">WGA</a>)</small>
<br>
<a href="/name/nm0905152/">Andy Wachowski</a> (written by) &#38;<br><a href="/name/nm0905154/">Larry Wachowski</a> (written by)<br>
<br>
<b class="ch">Genre:</b>
<a href="/Sections/Genres/Action/">Action</a> / <a href="/Sections/Genres/Thriller/">Thriller</a> / <a href="/Sections/Genres/Sci-Fi/">Sci-Fi</a> <a href="/rg/title-tease/keywords/title/tt0133093/keywords">(more)</a>
<br><br>
<b class="ch">Tagline:</b> Be Afraid Of The Future <a href="/rg/title-tease/taglines/title/tt0133093/taglines">(more)</a>
<br><br>From this part of HTML code i need the Genres (in this case: Action, Thriller & Sci-Fi), and the directors (andy & Larry Wachowsky).
My problem is now how to get these data.
the first idea was to get the complete HTML source, disassemble it and then search for the words. You did this in your example code very good. But what can i do if i dont kinow the words for what im searching??
Lets say i know that there are some genres, but i dont know which genres there are??
so i could not really search for thriller, action and so on.
Maybe i should search for the word "Genre:", cause this stands there every time and if i found it, i must pitch on the words behind it.
I think your example code is very good, but he must find somehow not a special word, but a special position or sth. like that.
I tried it by myself in some ways with the stringtokenizer, but regretfully he reaches very fast his limit.
U understand now better my problem??
sorry for the trouble, but my english is not the best and so its very difficult for me to describe my problem in english.

Similar Messages

  • Urgent help: how to create data source for Weblogic RMI driver

    Hi,
    Please let me how to create data source for Weblogic RMI driver using Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

    DataSource will internally do that for you (It will use RMI internaly) . You
    dont have to worry about the details of using RMI driver. Thats what is a
    DataSource is for.
    sree
    "pradeep bhat" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree,
    What u have written is abt configuting Datasource for type 2 and
    4 drivers.
    But I want to know how to create data source for RMI driver. If
    I map this datasource to connection pool that is created for
    type 2 or 4 drivers, i don't understand why RMI drivers are
    required in first place. If i do map the data source to connection pool
    created
    for type 2 or 4 drivers then where i
    would not have used the URL as jdbc:weblogic:rmi and Driver as
    weblogic.jdbc.rmi.Driver.
    Hope u will help me.
    pradeep bhat
    "Sree Bodapati" <[email protected]> wrote:
    Hi Pradeep
    To create a connection pool you have to use a database driver not RMI
    driver. So use a thin driver or the WebLogic jDriver for Oracle to setup
    your connection pool. Once the connection pool is created you can create
    a
    DataSource and use this datasource to connect to the database.
    The RMI driver can be used to get connections from the database via the
    connection pool and in that case you dont need a datasource. Recommended
    approach is to use a DataSource.
    hth
    sree
    "PRADEEP BHAT" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    Please let me how to create data source for Weblogic RMI driver using
    Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new
    DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

  • Urgent help: how to create data source for Weblogic T3 driver

    Hi,
    Please let me how to create data source for Weblogic T3 driver
    using Administrator console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL
    as jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver.
    Now comes the problem.. what do put in properties text area?
    I am talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a
    new DataSource mapping to the connection pool created from
    step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle database. Please
    help me.
    pradeep bhat

    Hi,
    Please let me how to create data source for Weblogic T3 driver
    using Administrator console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL
    as jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver.
    Now comes the problem.. what do put in properties text area?
    I am talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a
    new DataSource mapping to the connection pool created from
    step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle database. Please
    help me.
    pradeep bhat

  • How to get the html source for these web page ?

    My code work well for standart page, but I'm unable to get the html source from these page with my vb program :
    http://www.slashdot.org
    http://userfriendly.org
    http://segfault.org
    here my code
    private sub commandgethtml_Click ()
    Inet1.Cancel
    Inet1.Protocol = icHTTP
    Inet1.URL = theURL
    HTMLcode = Inet1.OpenURL(theURL, icString)
    RichTextBox1.Text = HTMLcode
    end sub
    thanks in advance.

    Hello Cyrano,
    This Developer Forum focuses on the National Instruments product "Measurement Studio for Visual Basic" (formerly known as ComponentWorks). Our goal is to help people to better integrate this product into their test, measurement, and automation applications. Your question directly pertains to the Microsoft Internet Transfer Control. I think you would find an increased number of responses that are better focused on your question if you would repost it to a forum that specializes in general VB and internet programming. Good luck!
    Jeremiah Cox
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How About Some Standard Standards For Keyword Hierarchy?

    After reading Wolf Eilers post in the "Respect Keyword Hierarchy when importing" thread, I tried his example and exported a RAW file with the "Outdoor>Landscape" example he gave and then re-imported the jpeg. It came back in with Landscape as the parent of Outdoor, that is backwards from what I intended. Go figure.
    If LR respects ">" as indicating a parent-child relationship between keywords it is fine with me. However, Microsoft decided to use "/" because there is apparently no XMP standard for keyword hierarchies. Wouldn't it be nice if Adobe, Microsoft, and Apple too got together and set a defacto standard for keyword hierarchies. As it is now, I can create a keyword "Outdoor/Landscape" in LR and have it appear in Vista Photo Gallery with Landscape as a child of Outdoor. However, if re-imported into LR it comes in as "Outdoor/Landscape". Can't we just all get along?

    Absolutely no. A completely pointless exercise. As there can be no standard for such a thing. As people have so many, very different ways of filing things. It like suggesting that we all use the same folder tree for filing on our computers. Our relationship to keywords and their meaning will change.
    Take Brad Pitt, would you put him under Actor, celebrity or relative. His mum would file him under Son/Family.
    What about places. I use UK, Europe, Asia, Africa...as top level domains. Now someone who lives in Japan would have Japan as home and the UK as Europe/UK. Some people may like to file musical acts by city of origin, others by genre, neither is wrong and both are correct for the right person. Being able to do both would be even better.
    You just design a heirachy that suits yourself. Adobe just has to find a way of respecting that and allowing you to transfer that heirarchy intact between apps.
    Someone else posted this example of heirachy. Which will work well for some, but not for others. Plus, in context of what you ask, remember everyone's family structure is different so how can you possibly have a 'standard' heirachy.
    http://www.flickr.com/photo_zoom.gne?id=98612897&size=o
    In your example above, I wouldn't use Outdoor and Landscape as Landscape. As for my filing I simply do not have an inside and outside category. I probably wouldn't even have a landscape category either, I would file them under location in a heirachical tree like UK/Wales/West Glamorgan/Gower/Rhosilli/Headland. I may add Landscape as a key word, but would not use it as a category as the heirachy tree above makes more sense to me as I can remember where things are.
    I also file everthing by date in my OS as I can remember when I took things reasonably well and that ensures I have a coherent filing system onto which I can apply a database.

  • How to view Script Source for  Execution Method type = "Spawned" ?

    I finded Concurrent Program Executable of "Actual Cost Worker"
    Concurrent Program Executable Information
    Executable :CMCTCM
    Sort Name : CMCTCM
    Apllication : Oracle Bills of Mateial
    Description Unified : Cost Manager
    Execution Method : Spawned
    Excution File Name CMCTCM
    Subroutine Name :cmltcm
    I want to view script source for CMCTCM.
    But. Before I have not view "Spawned' script source.
    I only have tech PL/SQL, Form, Report source.
    How to confirm script source of Spawned type ?
    Message was edited by:
    roseok77
    Message was edited by:
    roseok77

    Try raising metalink TAR asking for the PRO*C source code.

  • HTML Source for Web Page Guest Authentication

    Where is the html source located in the WLC for Guest web authentication page.                  

    If you have 5508 WLC you can download it from here:
    http://www.cisco.com/cisco/software/release.html?mdfid=282600534&release=1.0.2&softwareid=282791507
    If other model, go to cisco download and choose the product to download the software for and from softwares to download for that product choose: Wireless Lan Controller Web Authentication Bundle
    (It is same bundle under all WLCs but you may or may not have permission to download the software depending on what WLC model is listed in your contract).
    HTH
    Amjad
    You want to say "Thank you"? Don't. Just rate the useful answers, that is more useful than "Thank you".

  • HOW TO CREATE DATA SOURCE FOR MAXDB

    hi,
    i am using hibernate in NetWeaver with maxdb.
    i have to give datasource name in hibernate.cfg.xml
    but i do't know how to create datasource for maxdb.
    please help me.
    Thanqqqqqqqq
    Guru

    The following link gives u how to create data source
    http://dev.mysql.com/doc/maxdb/en/84/1d733cefd63c38e10000000a114084/content.htm

  • How to generate data source for classification data

    Hi all,
    I would like to know how to generate a data source for material classification data .
    Thanks
    OJB

    http://www.mycomputerfiles.com/BW35_SAP/BW_expert_online_docs/Volume_02_2004/Issue_08_September/Understand%20the%20R3%20Classification%20System%20and%20How%20to%20Extract%20.doc
    http://affine.co.uk/cms/uploads/How_to_Extract_Classification_Data_into_BW.pdf
    hope it helps,
    Alex
    Edited by: Alex M on Jan 4, 2011 9:28 AM

  • Mozilla n' Firefox shows HTML source for JSP(URGENT!!)

    Hi all,
    I have made a web application with JSPs. It seems to work fine with IE. However, with Mozilla and Firefox, it displays the HTML source generated by JSP instead of actually showing the HTML page for that source.
    I'm stumped because I haven't found any other msgs on forums with someone experiencing the same problem. Any help would be appreciated. I need to fix this urgently.
    Thanks
    regards
    Duke
    Message was edited by:
    SeanDaDuke

    Hi,
    I am also facing the same problem. Have you identified any solution for this? Please let me also know the solution.
    Thanks in Advance.
    Regards
    Priya

  • How to find Info Source for Export Data source in Data Marts node

    Hi
                  I need to load data from ODS to Info Cube. I created the Export Data source for the ODS. I can see the Export Data Source but in the Data Marts node of Info Source i cannot find the Info Source for the Export Data source i created. I replicated Data sources in the BW source system. I also tried to use Insert Lost Nodes from the Context Menu of the InfoSource node but nothing worked. Please let me know what i need to do to see the Info source in the Data Marts.
    Thanks
    Padma

    In the infosource tab in RSA1 - use settings --> display generated objects
    you will be able to see the datamart infosources..

  • How to configure data source for MS SQL 2005 Server.

    Good morning,
    While creating a data source for MS SQL 2005 Server, what are the values I should use for:
    Object Factory, DataSource Type, and CPDS Class Name values ?
    Thanks
    Seenu

    seenuFour wrote:
    Hi,
    I am working on a web application, the backend of which is a MS SQL 2005 server. I am creating a data source on the application server to manage the connection pool.
    Hence I need to give the following values while creating the data source:...
    Hence you need to provide some actual detail about what the context is.
    IIS runs "web applications" but your question would have no meaning in that context. On the other hand it might have some meaning if you were running Tomcat.

  • How to highlight HTML source code in JEditorPane

    I used JEditorPane to display the HTML source code. Now I want to highlight some part of the HTML code.
    e.g. change the font or color of the second line in this piece of HTML code.
    I tried to highlight the text in HTML way, e.g.
    JEditorPane jep=new JEditorPane():
    jet.setContentType("text/html");
    jet .setText("<html><i>display styled text</i></html>");
    but it didn't work at all. As the text I want to highlight is alreay a part of the HTML code.
    I have to sort it out ASAP. as the deadline of my project is coming...
    any advice is appreciated.
    Thanks so much..:)

    "In order to display the original html source code (not the effect made by HTML code ) i n JEditorPane,
    i can't use editorPane.setContentType("text/html"): As it will try to render the webpage with this piece of HTML code..
    e.g. here is the piece of html code i want to display in JEditorPane:
    <HTML><HEAD><TITLE>Department of Computer Science Home Page</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <META content="MSHTML 6.00.2737.800" name=GENERATOR>
    </HEAD>.........</HTML>
    what i want to do is to highlight "Department of Computer Science Home Page" by setting it bold or italic."
    Not really sure what you're saying here, but it sounds like you mean that you want the HTML itself to change. If that's it just:
    <HTML>
    <HEAD>
      <TITLE>Department of Computer Science Home Page</TITLE>
      <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
      <META content="MSHTML 6.00.2737.800" name=GENERATOR>
    </HEAD>
    <BODY color='blue' bgcolor='white'>
      <tr>
       <td bgcolor=yellow>Department of Computer Science Home Page</td>
      </tr>
    </BODY>
    </HTML>FWIW HTH, B4N
    ~Bill

  • How to delete data source for Planning?

    I have removed some decommed planning cubes and apps but when I try to delete teh data sources for them in the planning config utility, it refuses, saying that the data sources are "associated with an application"?

    First delete the applicaiton from the link http://machinename:8300/HyperionPlanning/AppWizard.jsp
    after successful deletion, goto the configuration utility. click on the DSN Delete.
    Regards

  • How to use HTML Video for iPad in iWeb

    I agree with all the advantages of HTML Video. How do you use html video on your iweb site?
    I want my iWeb site video to be viewable on iPads.
    I have learned the technique to use the HTML Snippet tool in iWeb to successfully post Flash video. I created all of my animations using Kenote's keyframe ability and have exported them to Quicktime and then have converted them into flash with Vertical Moon's Video to SWF. Then simply upload the SWF file to a folder on your idisk, then use the Flash Video insert HTML Snippet and insert the idisk url of the SWF file and you are done. What is the technique for HTML Video?
    I have found some HTML video encoders, here are the links:
    http://www.projekktor.com/ the technique is not clear to me and appears complicated.
    http://www.brightcove.com/en/ this one is way too expensive at $99 a month.
    http://jilion.com/sublime/video this one looks great but is not yet available and I am guessing it is a converter that will make your iMovie Quicktime into HTML Video.
    I have all of the i-Apps and Final Cut Express (2 revs out of date). Can I get the proper HTML video file from these programs, unless I am missing something I don't think so.
    Most people do not believe I made my site completely with Keynote and iWeb but here it is. http//www.falcon-pacific.com
    Thank You Very Much for considering my question. I will put the results on my iWeb site and the exact procedure and acknowledge all the sources of the solution.

    I want my iWeb site video to be viewable on iPads.
    Your videos ARE viewable on a iPad. No need for explicit HTML video coding.
    If you export your movies to iPhone that's all there is to do. You can do it in QT Pro/iMovie
    And HTML Video is a HTML code, not the movie itself :
    <video width="480" height="270" src="movie.m4v" controls></video>
    I use the iPad simulator in the SDK :
    http://developer.apple.com/ipad/sdk/
    Here's the result :
    http://ipad.dailynews.webege.com
    My blog : [html5 video|http://www.wyodor.net/blog/archives/2009/06/entry_181.html]
    And some links in my post in this topic : [HTML 5 in IWEB|http://discussions.apple.com/thread.jspa?threadID=2404927&tstart=30]

Maybe you are looking for