how to read Fast Large Xml File
-
Plz give me supar fast method for reading Large Xml File of 4MB to 10MB. i have used the following code but it is also slow for my Application. 1 st way-> FileStream sr=new FileStream ("C:\test.Xml",FileMode.Open); XmlTextRader rd=new XmlTextReader(sr); Whlie(rd.Read()) { // ----- // } Second way-> FileInfo sr=new FileInfo ("C:\Test.Xml"); XmlTextRader rd=new XmlTextReader(sr.OpenRead()); Whlie(rd.Read()) { // ----- // } Sanjit.rajbanshi@wlinktech.com
-
Plz give me supar fast method for reading Large Xml File of 4MB to 10MB. i have used the following code but it is also slow for my Application. 1 st way-> FileStream sr=new FileStream ("C:\test.Xml",FileMode.Open); XmlTextRader rd=new XmlTextReader(sr); Whlie(rd.Read()) { // ----- // } Second way-> FileInfo sr=new FileInfo ("C:\Test.Xml"); XmlTextRader rd=new XmlTextReader(sr.OpenRead()); Whlie(rd.Read()) { // ----- // } Sanjit.rajbanshi@wlinktech.com
-
That is not faster at all.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
-
Plz give me supar fast method for reading Large Xml File of 4MB to 10MB. i have used the following code but it is also slow for my Application. 1 st way-> FileStream sr=new FileStream ("C:\test.Xml",FileMode.Open); XmlTextRader rd=new XmlTextReader(sr); Whlie(rd.Read()) { // ----- // } Second way-> FileInfo sr=new FileInfo ("C:\Test.Xml"); XmlTextRader rd=new XmlTextReader(sr.OpenRead()); Whlie(rd.Read()) { // ----- // } Sanjit.rajbanshi@wlinktech.com
Well the super-fast method would be read them same way as plain text. Maybe XML is not good format for your application? If you want to, provide more details about that XML file and app...
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus