tags:

views:

274

answers:

1

Hi friends, I want a help that i need a custom logic to read large XML of size 1GB.

Thanks sivaram

+1  A: 

the following code snippet might help you:

private void readXML() {
    XmlReaderSettings settings = new XmlReaderSettings();
    //configure xml reader settings...
    using(XmlReader reader = XmlReader.Create("file.xml", settings)){
        while (reader.Read()){
            //read xml content..
        }
        reader.Close();
    }
}
Igor Zelaya