• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

2 Bluffer's Guide
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog SGML/XML parser
        • Bluffer's Guide
          • ‘Goodies’Predicates
            • load_sgml/3
            • load_xml/3
            • load_html/3

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 is html4 or html5 (default), depending on the Prolog flag html_dialect. Both imply the option shorttag(false). The option dtd(DTD) is passed, where DTD is the HTML DTD as obtained using dtd(html, DTD). See dtd/2.

ClioPatria (version V3.1.1-51-ga0b30a5)