renggli / dart-xml

Lightweight library for parsing, traversing, and transforming XML in Dart.
http://pub.dartlang.org/packages/xml
MIT License
223 stars 52 forks source link

Export XmlSimpleName and XmlPrefixName #138

Closed luzannew closed 2 years ago

luzannew commented 2 years ago

Added XmlSimpleName and XmlPrefixName in the export, so we can do a check on element.name (element is XmlElement) to see which type it is

renggli commented 2 years ago

The classes XmlSimpleName and XmlPrefixName are an implementation detail that is not meant to be exposed, please use name.prefix != null to check if this is a prefixed name.

luzannew commented 2 years ago

Ok, I closed the PR. It was much simpler to check on type but this also works for me. Thanks :)