The Webfeed Flutter package for Appeto SDK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 rivejä
324 B

  1. import 'dart:core';
  2. import 'package:xml/xml.dart';
  3. String xmlGetString(XmlElement element, String name, {strict: true}) {
  4. try {
  5. return element
  6. .findElements(name)
  7. .first
  8. .text;
  9. } on StateError {
  10. if (strict) {
  11. throw new ArgumentError("$name not found");
  12. }
  13. }
  14. return null;
  15. }