{ $see-also with-entities } ;
HELP: with-entities
-{ $values { "entities" "a hash table of strings to strings" } { "quot" "a quotation ( -- )" } }
+{ $values { "entities" "a hash table of strings to strings" } { "quot" { $quotation ( -- ) } } }
{ $description "Calls the quotation using the given table of entity values (symbolizing, eg, that " { $snippet "&foo;" } " represents " { $snippet "\"a\"" } ") on top of the default XML entities" } ;
{ $see-also read-xml } ;
HELP: each-element
-{ $values { "stream" "an input stream" } { "quot" "a quotation ( xml-elem -- )" } }
+{ $values { "stream" "an input stream" } { "quot" { $quotation ( xml-elem -- ) } } }
{ $description "Parses the XML document, and whenever an event is encountered (a tag piece, comment, parsing instruction, directive or string element), the quotation is called with that event on the stack. The quotation has all responsibility to deal with the event properly. The encoding of the stream is automatically detected, so a binary input stream should be used." }
{ $see-also read-xml } ;