2.1 ‘Goodies' Predicates
These predicates are for basic use of the library, converting entire and self-contained files in SGML, HTML, or XML into a structured term. They are based on load_structure/3.
- load_sgml(+Source, -ListOfContent, :Options)
- Calls load_structure/3
with the given Options, using the default option
dialect(sgml)
- load_xml(+Source, -ListOfContent, :Options)
- Calls load_structure/3
with the given Options, using the default option
dialect(xml)
- load_html(+Source, -ListOfContent, :Options)
- Calls load_structure/3
with the given Options, using the default options
dialect(HTMLDialect)
, where HTMLDialect ishtml4
orhtml5
(default), depending on the Prolog flaghtml_dialect
. Both imply the optionshorttag(false)
. The optiondtd(DTD)
is passed, where DTD is the HTML DTD as obtained usingdtd(html, DTD)
. See dtd/2.