XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 22nd, 2004, 01:56 PM
mellowmoose mellowmoose is offline
lost in a world of ideas
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: London
Posts: 16 mellowmoose User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 33 sec
Reputation Power: 0
search xml content (not tags/elements) *before* parsing

Is it possible to search the contents of an XML file before its parsed ideally using java?

Can the same be done to a HTML/XHTML file.

My setup:
Language used is Java with a DOM parser (xerces).

Im Downloading XML/HTML files with structure and elements unknown (they'll be random xml/html files).

I want to be able to search file contents, not for tag/elements names (content will be small, typically 3000 words or less) before i parse in order to save time.

Is this possible , How?

If not whats the best way to search after parsing ? can it be done with DOM/xerces ?

The idea is to specify a number of keywords and search for them within the xml file ... if the keywords appear then to parse the xml file and save the content to the local drive.

Thanks

Last edited by mellowmoose : February 22nd, 2004 at 01:57 PM. Reason: title edit

Reply With Quote
  #2  
Old February 23rd, 2004, 06:30 PM
Kim Turley Kim Turley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 21 Kim Turley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try this one for the search facility
http://www.gre.ac.uk/~tk301/3dmm/search.html

then you would have to add an if statement that if match is found then do something else

but i'm pretty sure it has to load the file anyway to search it

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > search xml content (not tags/elements) *before* parsing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT