Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2007, 02:34 PM
Member
 
Join Date: May 2007
Posts: 11
luisarca is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-03-2007, 01:34 PM
Member
 
Join Date: Dec 2007
Posts: 1
Hossam Saraya is on a distinguished road
you may include in ur while :

Code:
int i = yourStream.indexOf("the text u detect"); if(i > 1) { yourStream = yourStream.substring(i + yourStream.length()); System.out.println(yourStream); }
i had ur same problem when i made my java app which extracts the word meaning from an online dictionary. hope it helps..

regards
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply

« J2me | doubt »

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract Interface (II) JavaForums Java Blogs 0 03-12-2008 05:00 PM
Extract Interface (I) JavaForums Java Blogs 0 03-12-2008 12:40 AM
Extract superclass(II) JavaForums Java Blogs 0 03-12-2008 12:40 AM
Extract superclass(I) JavaForums Java Blogs 0 03-12-2008 12:40 AM
How to extract info from a sentence luisarca XML 1 06-07-2007 07:43 PM


All times are GMT +3. The time now is 08:06 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org