in reply to Re: XML and file size
in thread XML and file size
searching in XML is much more expensive!!!
I'm not sure that I agree with that. If "searching" means checking whether a word or phrase occurs in the file then the time required to search would be almost identical for XML versus plain text - assuming you use the same code for each (save for the fact that the XML file will be a bit more verbose so extra I/O might be required in some cases).
On the other hand if you want to do semantic searches (eg: does this word or phrase occur within <title> ... </title> tags?) then sure that will take more CPU cycles than a plain text match but that is merely extra cost for extra power.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: XML and file size
by osama (Scribe) on Jan 08, 2003 at 03:29 UTC | |
by grantm (Parson) on Jan 08, 2003 at 07:22 UTC |