xml.js 213 Bytes Raw Blame History Permalink 1 2 3 4 5 6 import { from } from './list'; export const findChildren = (element, name) => from(element.childNodes).filter(({tagName}) => tagName === name); export const getContent = element => element.textContent.trim();