Eric Branson · @ericbranson
23 followers · 84 posts · Server law.builders

This Javascript snippet will pull the individual headings to give an "idea" of what an act is doing. It should work within the web browser console (unsure about ) but needs the polyfill for the iterator onto XPathResult.

Array.from(document.evaluate('//uslm:heading', document, () => "schemas.gpo.gov/xml/uslm", XPathResult.ANY_TYPE, null)).map((result) => (console.log(result.textContent)))

govinfo.gov/link/plaw/117/publ
stackoverflow.com/questions/47

#USLM #AkomaNtoso

Last updated 3 years ago

Eric Branson · @ericbranson
15 followers · 22 posts · Server law.builders

We need a "simplified" view of complex legal documents for mere mortals, using basic Web standards, ie that just works™. 🤠 How can we leverage this amazingly well-designed and data? Would be nice to have a baseline, open-source, privacy-focused, distributed webapp (eg statically-served ES modules), consuming live data direct from . govinfo.gov/content/pkg/COMPS-

#USLM #AkomaNtoso #govinfo

Last updated 3 years ago