![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Does the XMLDocument.Load(System.IO.Stream) method load the whole The description of the XMLDocument.Load method doesn't quite answer the question. When passing in a FileStream object to the Load method, does it load the entire document into memory? For example, if I have a 1 gigabyte file, would the Load method attempt read the entire 1 gigabyte file into memory when using a FileStream object? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Does the XMLDocument.Load(System.IO.Stream) method load the whole Shawn Sesna wrote: Quote: > The description of the XMLDocument.Load method doesn't quite answer the > question. When passing in a FileStream object to the Load method, does it > load the entire document into memory? stream until it's read a complete document. Quote: > For example, if I have a 1 gigabyte file, would the Load method attempt > read the entire 1 gigabyte file into memory when using a FileStream > object? piecewise and construct an in-memory representation of the XML document it represents while it's doing so. This will end up quite a bit larger than 1 GB, actually. This is why XmlDocument is unsuitable for very large streams. XmlReader and XPathNavigator are light-weight alternatives. -- J. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Windows Update Won't Load--gets error-"This page failed to load" | Windows Updates | |||
| HELP! "Unable to load on Stream" | Vista Games | |||
| CPU load about 50% when system is idle | Vista General | |||
| how to reduce system load? | Vista performance & maintenance | |||
| System Properties Fails To Load | Vista General | |||