Editing very large xml files

I would like to create a text box that loads xml files and allows users to edit them. However, I cannot use XmlDocument to load, as the files can be very large. I am looking for options for streaming / loading an xml document in chunks so that I don't have errors in memory - at the same time, performance is important. Could you tell me what would be good options?

+5
source share
8 answers

Try Scintilla.NET, it is much better than TextBox!

http://scintillanet.codeplex.com/

Downloading a document is easy:

using (TextReader reader = new StreamReader(myFilePath, Encoding.UTF8))
{
    scintillaDocument.Text = reader.ReadToEnd();
}

Or:

scintillaDocument.Text = File.ReadAllText(myFilePath);
+2
source

xml xmldocument , , , ?

? ?

sometextarea.Text = System.IO.File.ReadAllText(Server.MapPath("somexml.xml"));

- , , 1. xml 2. .

+2

XML (1 + ) mySql. , . , , - , "" xml,

`<perRecordTag>`

   <other data / node elements>

`</perRecordTag>`

XMLDocument ( ). , , , .

, xml, , .

+1

simimlar, CSV.

DRapp , , , , , , .

, , - , , , .

DRapp , .

, x, node y , , node/ .

, chnage, , , , .

, 1 , .

, , 1.x- , .

+1

. . MemoryMappedFile Class MSDN. , , . .NET 4.

XMLNameTable. , , , .

XML-. . Altova XML , , , , .NET. BTW .

+1

, . XML , XML? XML .

, XML , XML- .

0
0
-2

All Articles