OpmlItem.parse constructor

OpmlItem.parse(
  1. XmlNode element
)

Implementation

factory OpmlItem.parse(XmlNode element) {
  return OpmlItem(
      title: element.getAttribute('title'),
      text: element.getAttribute('text'),
      description: element.getAttribute('description'),
      type: element.getAttribute('type'),
      version: element.getAttribute('version'),
      xmlUrl: element.getAttribute('xmlUrl'),
      htmlUrl: element.getAttribute('htmlUrl'),
      language: element.getAttribute('language'),
      nesteditems: element
          .findAllElements('outline')
          .map((e) => OpmlItem.parseWithoutNested(e))
          .toList());
}