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
]
]
dip
compose
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
length
[
seq>>
]
call
\
length
execute
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
lengthen
[
seq>>
]
call
\
lengthen
execute
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
like
[
seq>>
]
call
\
like
execute
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
new-resizable
[
seq>>
]
call
\
new-resizable
execute
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
new-sequence
[
seq>>
]
call
\
new-sequence
execute
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
nth
[
seq>>
]
call
\
nth
execute
;
USING:
accessors
kernel
sequences.private
xml.data
;
M:
xml-chunk
nth-unsafe
[
seq>>
]
call
\
nth-unsafe
execute
;
USING:
make
xml.data
xml.syntax.private
;
M:
xml-chunk
push-item
%
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
set-length
[
seq>>
]
call
\
set-length
execute
;
USING:
accessors
kernel
sequences
xml.data
;
M:
xml-chunk
set-nth
[
seq>>
]
call
\
set-nth
execute
;
USING:
accessors
kernel
sequences.private
xml.data
;
M:
xml-chunk
set-nth-unsafe
[
seq>>
]
call
\
set-nth-unsafe
execute
;