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
Post a Comment