Created
          December 11, 2014 21:23 
        
      - 
      
- 
        Save StrykerKKD/81dbb287efdfb2a2f5db to your computer and use it in GitHub Desktop. 
    Dart: Processing Big XML by Streaming
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'package:xmlstream/xmlstream.dart'; | |
| import 'dart:io'; | |
| main() { | |
| XmlStreamer xmlStreamer = new XmlStreamer.fromStream(new File('BigXMLFile.xml').openRead()); | |
| xmlStreamer.read().listen((XmlEvent event){ | |
| print(event); | |
| }); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment