Skip to content

Commit

Permalink
Ready for 3.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Jan 24, 2019
1 parent bf0952e commit 0a809a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

## 3.3.0

* New Event based parsing in `xml_events`:
* Lazy event parser into `Iterable<XmlEvent>`.
* Converters between `String`, `List<XmlEvent>` and `List<XmlNode>`.
* New event based parsing in `xml_events`:
* Lazy event parsing from a XML string into an `Iterable` of `XmlEvent`.
* Async converters between streams of XML, `XmlEvent` and `XmlNode`.
* Remove the experimental

* Clean up package structure by moving internal packages into the `src/`
subtree.


## 3.2.4

Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ print(document.toString());
print(document.toXmlString(pretty: true, indent: '\t'));
```

Another way to efficiently read an XML document is to use the SAX API (Simple API for XML). Create a reader and provide the event handlers you are interested in. The following snippet prints all the element names in the above XML document: bookshelf, book, title, price, book, title, price and price.

```dart
var reader = XmlReader(onStartElement: (name, attributes) => print(name));
reader.parse(bookshelfXml);
```

### Traversing and Querying

Accessors allow to access nodes in the XML tree:
Expand Down
1 change: 1 addition & 0 deletions lib/xml_events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export 'src/xml_events/events/processing_event.dart' show XmlProcessingEvent;
export 'src/xml_events/events/start_element_event.dart'
show XmlStartElementEvent, XmlElementAttribute;
export 'src/xml_events/events/text_event.dart' show XmlTextEvent;
export 'src/xml_events/visitor.dart' show XmlEventVisitor;

/// Returns an [Iterable] of [XmlEvent] instances over the provided [String].
///
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ description: A lightweight library for parsing, traversing, querying, transformi
homepage: https://github.com/renggli/dart-xml

environment:
sdk: ">=2.0.0-dev.69 <3.0.0"
sdk: '>=2.0.0 <3.0.0'
dependencies:
petitparser: ^2.0.0
petitparser: ^2.1.0
collection: ^1.14.0
convert: ^2.1.0
dev_dependencies:
test: ^1.3.0
test: ^1.5.0
args: ^1.5.0

0 comments on commit 0a809a1

Please sign in to comment.