
February 22nd, 2004, 01:56 PM
|
|
lost in a world of ideas
|
|
Join Date: Jul 2003
Location: London
Posts: 16
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
|