Handbook
Glossary
prolog
XML data types
ยป
XML data classes
Prev:
open-tag
Next:
comment
Vocabulary
xml.data
Class description
represents an XML prolog, with the tuple fields version (containing "1.0" or "1.1"), encoding (a string representing the encoding type), and standalone (t or f, whether the document is standalone without external entities)
See also
<prolog>
,
xml
Definition
USING:
kernel
strings
;
IN:
xml.data
TUPLE:
prolog
{
version
string
initial:
""
}
{
encoding
string
initial:
""
}
{
standalone
boolean
initial:
f
}
;
Methods
USING:
kernel
namespaces
sequences
xml.data
xml.errors
xml.private
xml.state
;
M:
prolog
process
xml-stack
get
{
V{
{
f
V{
""
}
}
}
V{
{
f
V{
}
}
}
}
member?
[
bad-prolog
]
unless
add-child
;
USING:
accessors
io
kernel
xml.data
xml.writer
xml.writer.private
;
M:
prolog
write-xml
"<?xml version="
write
[
version>>
write-quoted
]
[
drop
" encoding=\"UTF-8\""
write
]
[
standalone>>
[
" standalone=\"yes\""
write
]
when
]
tri
"?>"
write
;