Skip to content

Dart FFI bindings to a stream-oriented XML parser library written in C.

Notifications You must be signed in to change notification settings

jpnurmi/expat.dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expat for Dart

license: MIT

Dart FFI bindings to a stream-oriented XML parser library written in C.

Expat excels with files too large to fit RAM, and where performance and flexibility are crucial.

Usage

import 'package:expat/expat.dart';

main() {
  var parser = XmlParser(
    onStartElement: (String element, List<String> attributes) {
      print('onStartElement $element')
    },
    onCharacterData: (String data) {
      print('onCharacterData $data');
    },
    onEndElement: (String element) {
      print('onEndElement $element');
    },
  );
  parser.parse(xml: '<foo>bar</foo>');
  parser.dispose();
}

About

Dart FFI bindings to a stream-oriented XML parser library written in C.

Topics

Resources

Stars

Watchers

Forks

Languages