3.4 DTD-Handling
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog SGML/XML parser
Predicate Reference
DTD-Handling
new_dtd/2
free_dtd/1
load_dtd/2
load_dtd/3
open_dtd/3
dtd/2
dtd_property/2
The DOCTYPE declaration
Availability:
:- use_module(
library(sgml)
).
(can be autoloaded)
load_dtd
(
+DTD, +File, +Options
)
Define the DTD by loading
File
. Defined options are the
dialect
option from
open_dtd/3
and the
encoding
option from
open/4
. Notably the
dialect
option must match the dialect used for subsequent parsing using this DTD.