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?
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);
xml xmldocument , , , ?
? ?
sometextarea.Text = System.IO.File.ReadAllText(Server.MapPath("somexml.xml"));
- , , 1. xml 2. .
XML (1 + ) mySql. , . , , - , "" xml,
`<perRecordTag>` <other data / node elements> `</perRecordTag>`
XMLDocument ( ). , , , .
, xml, , .
simimlar, CSV.
DRapp , , , , , , .
, , - , , , .
DRapp , .
, x, node y , , node/ .
, chnage, , , , .
, 1 , .
, , 1.x- , .
. . MemoryMappedFile Class MSDN. , , . .NET 4.
XMLNameTable. , , , .
XML-. . Altova XML , , , , .NET. BTW .
, . XML , XML? XML .
, XML , XML- .
, Microsoft XML Notepad 2007. , 3mb.
http://www.microsoft.com/download/en/details.aspx?id=7973
, XmlTextReader.