Permalink
Browse files

merged PRs and updated pubspec

  • Loading branch information...
1 parent 652ee54 commit 61f67bd80a3b9120362e12ff0eb75638a2130bcd @prujohn committed Mar 3, 2014
Showing with 3 additions and 5 deletions.
  1. +2 −4 lib/src/xml_element.dart
  2. +1 −1 pubspec.yaml
View
@@ -107,15 +107,13 @@ class XmlElement extends XmlNode {
void addChild(XmlNode element){
//shunt any XmlAttributes into the map
if (element is XmlAttribute){
- var xmlAttr = element as XmlAttribute;
- attributes[xmlAttr.name] = xmlAttr.value;
+ attributes[element.name] = element.value;
return;
}
//shunt any XmlNamespaces into the map
if (element is XmlNamespace){
- var xmlNamespc = element as XmlNamespace;
- namespaces[xmlNamespc.name] = xmlNamespc.uri;
+ namespaces[element.name] = element.uri;
return;
}
View
@@ -1,5 +1,5 @@
name: xml
-version: 0.9.5
+version: 1.0.0
author: John Evans <prujohn@gmail.com>
description: A lightweight XML Parser.
homepage: https://github.com/prujohn/dart-xml

0 comments on commit 61f67bd

Please sign in to comment.