xml - Need advice for XMLText usage in C# -


i writing output module visualize data on program.

if inspect code, add point coordinates string , add string textnode element. problem number of points can more 500000

is there better way write lot of text xml or ok?

xmlelement points = doc.createelement("vtk", "dataarray");  string str = "";  (int = 0; < sim.numberofparticles; i++) { str += sim.pposx[i].tostring() + " " + sim.pposy[i] + " " + sim.pposz[i] + "\n" } xmltext coordinates = doc.createtextnode(str); points.appendchild(coordinates); 

for amount of data, use xmlwriter instead of xmldocument. streams , resources no problem more.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -