Hello Mark,
NameTable is a very useful thing to have in XmlTextReader. It makes sure
that each name is allocated only once and that name comparison that is so
often in XML processing can be done efficiently by just comparing string
references instead of doing the full string comparison. Just think how many
string comparisons must be done to implement duplicate attribute checking or
namespace lookups. If we were to allocate a string for each name in the
document, the parser would be waaayyy slower.
Thanks,
Helena Kupkova, Microsoft
"Mark Bosley" <ma********@lightcc.com> wrote in message
news:ee**************@TK2MSFTNGP14.phx.gbl...
There seems to be little interest in this object, the docs are wrong and
it doesn't do much.
Two years ago, it was pointed out that the documentation is nonsensical
(http://groups-beta.google.com/group/...232c4e9c0bdd64)
, the documentation remains unchanged.
The one example that makes any sense at all is found at
http://www.csharpfriends.com/article...eID=309&page=2
But even reading a 52MB file, it provides about a 10% boost.
So, MS, please .. correct the documentation or be rid of it.
Sincerely, Mark B.