Click here to Skip to main content
16,011,500 members
Home / Discussions / C#
   

C#

 
GeneralRe: mime handling with webbrowser control Pin
mitooki12-Jan-06 23:54
mitooki12-Jan-06 23:54 
QuestionReseting the text in a control. Pin
DELETEUSER10-Jan-06 11:22
DELETEUSER10-Jan-06 11:22 
AnswerRe: Reseting the text in a control. Pin
Christian Graus10-Jan-06 12:10
protectorChristian Graus10-Jan-06 12:10 
AnswerRe: Reseting the text in a control. Pin
Guffa10-Jan-06 13:59
Guffa10-Jan-06 13:59 
QuestionResponding to a click on a Shockwave object. Pin
jbradshaw10-Jan-06 10:35
jbradshaw10-Jan-06 10:35 
AnswerRe: Responding to a click on a Shockwave object. Pin
mitooki11-Jan-06 1:09
mitooki11-Jan-06 1:09 
QuestionOutOfMemory loading massive XML file Pin
Martin2310-Jan-06 10:07
Martin2310-Jan-06 10:07 
AnswerRe: OutOfMemory loading massive XML file Pin
Guffa10-Jan-06 10:38
Guffa10-Jan-06 10:38 
You could parse the nodes yourself if the file has a basically simple structure, e.g. something similar to:

<root><br />
	<node ... >...</node><br />
	<node ... >...</node><br />
	<node ... >...</node><br />
	<node ... >...</node><br />
	<node ... >...</node><br />
	... lots'a nodes<br />
	<node ... >...</node><br />
</root>


By reading the file in small parts, you could extract the complete nodes you find in that part of the file, put them in a separate xml document in a string and load it into a XmlDocument object.

Pseudo code:

buffer = ""<br />
loop {<br />
	buffer += stream.Read(lotsabytes)<br />
	find first "<node>" in buffer<br />
	find last "</node>" in buffer<br />
	nodes = get what's between<br />
	buffer = what's after<br />
	xmldoc.LoadXml("<root>" + nodes+ "</root>")<br />
	... do whatever you want with the nodes<br />
}


---
b { font-weight: normal; }
<
GeneralRe: OutOfMemory loading massive XML file Pin
Martin2310-Jan-06 11:30
Martin2310-Jan-06 11:30 
AnswerRe: OutOfMemory loading massive XML file Pin
Christian Graus10-Jan-06 12:12
protectorChristian Graus10-Jan-06 12:12 
GeneralRe: OutOfMemory loading massive XML file Pin
Matt Gerrans10-Jan-06 16:03
Matt Gerrans10-Jan-06 16:03 
GeneralRe: OutOfMemory loading massive XML file Pin
Martin2311-Jan-06 4:43
Martin2311-Jan-06 4:43 
GeneralRe: OutOfMemory loading massive XML file Pin
Matt Gerrans11-Jan-06 7:27
Matt Gerrans11-Jan-06 7:27 
QuestionStupid question of the day Pin
Jamie Nordmeyer10-Jan-06 10:03
Jamie Nordmeyer10-Jan-06 10:03 
AnswerRe: Stupid question of the day Pin
leppie10-Jan-06 18:42
leppie10-Jan-06 18:42 
GeneralRe: Stupid question of the day Pin
Jamie Nordmeyer11-Jan-06 4:07
Jamie Nordmeyer11-Jan-06 4:07 
QuestionXML Serialization Pointer Fix uping Pin
asdf98910-Jan-06 9:32
asdf98910-Jan-06 9:32 
AnswerRe: XML Serialization Pointer Fix uping Pin
Dave Kreskowiak10-Jan-06 15:41
mveDave Kreskowiak10-Jan-06 15:41 
AnswerRe: XML Serialization Pointer Fix uping Pin
Judah Gabriel Himango10-Jan-06 16:05
sponsorJudah Gabriel Himango10-Jan-06 16:05 
GeneralRe: XML Serialization Pointer Fix uping Pin
leppie10-Jan-06 18:55
leppie10-Jan-06 18:55 
GeneralRe: XML Serialization Pointer Fix uping Pin
Judah Gabriel Himango10-Jan-06 20:39
sponsorJudah Gabriel Himango10-Jan-06 20:39 
GeneralRe: XML Serialization Pointer Fix uping Pin
leppie10-Jan-06 21:04
leppie10-Jan-06 21:04 
QuestionWeb Page on Windows Form? Pin
cyrus_thevirus10-Jan-06 9:20
cyrus_thevirus10-Jan-06 9:20 
AnswerRe: Web Page on Windows Form? Pin
Martin2310-Jan-06 11:27
Martin2310-Jan-06 11:27 
Questionwindows Standby Pin
shabonaa10-Jan-06 9:19
shabonaa10-Jan-06 9:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.