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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -