search xml content (not tags/elements) *before* parsing

S

sal achhala

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

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

My setup:

Im using a DOM parser (xerces) and 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,832
Latest member
UtaHetrick

Latest Threads

Top