Hello,
is there a way to disable or reset the entries in a NameTable?
Background is that is that i create small XmlElements and send them over
the wire with a TCP connection. I can't create XmlElements without
having a document. The XmlElements are only created, but never added to
the document. After i sent them they get disposed. In my code will be
lots of classes derived from Element which help me building my XML. The
problem here is that the NameTable blows up with each XmlElement i create.
Of course i could inherit all my classes from XmlDocument to solve this
issue. But the downside here would be that i have to use ImportNode to
build my XML and always create complete XmlDocuments which is very slow.
And compared to the first solution it needs much more memory. I wrote
some small test cases and profiled them for speed and memory comparisons.
Alex