Results 1 to 2 of 2
- 06-06-2007, 12:34 PM #1
Member
- Join Date
- May 2007
- Posts
- 11
- Rep Power
- 0
How to extract information from a sentece
Hi to all!
I have some problems in extracting the information I need from a sentece. I'm reading an XML document, and I need some information.
Here is the problem:
<COMPONENT>
<RESOURCE REF="myFirstPicture.jpg" TYPE="<some preamble>/image/jpg" />
</COMPONENT>
I'm able to detect when a component appears, and after that, I would like to read the next sentence and extract the info I need.
Can somebody help me?
Thank you very much,
Luisarca
- 12-03-2007, 11:34 AM #2
Member
- Join Date
- Dec 2007
- Posts
- 1
- Rep Power
- 0
you may include in ur while :
i had ur same problem when i made my java app which extracts the word meaning from an online dictionary. hope it helps..Java Code:int i = yourStream.indexOf("the text u detect"); if(i > 1) { yourStream = yourStream.substring(i + yourStream.length()); System.out.println(yourStream); }
regards
Similar Threads
-
How to extract info from a sentence
By luisarca in forum XMLReplies: 1Last Post: 06-07-2007, 05:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks