Handbook
Glossary
xml-chunk
XML data types
»
XML data classes
Prev:
xml
Next:
tag
Vocabulary
xml
.
data
Class description
Encapsulates a balanced fragment of an XML document. This is a sequence (following the
Sequence protocol
) of XML data types, e.g.
string
s and
tag
s.
See also
<xml-chunk>
Definition
IN:
xml.data
TUPLE:
xml-chunk
seq
;
Methods
USING:
inverse
kernel
sequences
xml.data
xml.syntax.inverse
;
M:
xml-chunk
>xml
remove-blanks
[
length
1
=/fail
]
[
first
dup
tag?
[
fail
]
unless
]
bi
;
USING:
xml.data
xml.syntax.inverse
;
M:
xml-chunk
>xml-chunk
;
USING:
kernel
xml.data
xml.syntax.private
;
M:
xml-chunk
[interpolate-xml]
interpolate-sequence
[
drop
<xml-chunk>
]
compose
;
USING:
accessors
kernel
xml.data
xml.syntax.inverse
;
M:
xml-chunk
[undo-xml]
seq>>
[undo-xml]
[
[
>xml-chunk