48 lines
2.1 KiB
Plaintext
48 lines
2.1 KiB
Plaintext
! Copyright (C) 2005, 2006 Daniel Ehrenberg
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
USING: help kernel xml ;
|
|
|
|
HELP: string>xml
|
|
{ $values { "string" "a string" } { "xml-doc" "an xml document" } }
|
|
{ $description "converts a string into an " { $snippet "xml-doc" }
|
|
" datatype for further processing" }
|
|
{ $see-also xml>string xml-reprint } ;
|
|
|
|
HELP: xml>string
|
|
{ $values { "xml-doc" "an xml document" } { "string" "a string" } }
|
|
{ $description "converts an xml document into a string" }
|
|
{ $notes "does not preserve what type of quotes were used or what data was omitted from version declaration" }
|
|
{ $see-also string>xml xml-reprint } ;
|
|
|
|
HELP: xml-parse-error
|
|
{ $description "the exception class that all parsing errors in XML documents are in." } ;
|
|
|
|
HELP: xml-reprint
|
|
{ $values { "in" "a string of XML" } { "out" "reprinted XML" } }
|
|
{ $description "parses XML and converts it back into a string, for testing purposes" }
|
|
{ $notes "does not preserve what type of quotes were used or what data was omitted from version declaration" } ;
|
|
|
|
HELP: PROCESS:
|
|
{ $syntax "PROCESS: word" }
|
|
{ $values { "word" "a new word to define" } }
|
|
{ $description "creates a new word to process XML tags" }
|
|
{ $see-also POSTPONE: TAG: } ;
|
|
|
|
HELP: TAG:
|
|
{ $syntax "TAG: tag word definition... ;" }
|
|
{ $values { "tag" "an xml tag name" } { "word" "an XML process" } }
|
|
{ $description "defines what a process should do when it encounters a specific tag" }
|
|
{ $examples { $code "PROCESS: x ( tag -- )\nTAG: a x drop \"hi\" write ;" } }
|
|
{ $see-also POSTPONE: PROCESS: } ;
|
|
|
|
ARTICLE: { "xml" "intro" } "XML"
|
|
"The XML module attempts to implement the XML 1.1 standard, converting strings of text into XML and vice versa. It currently is a work in progress."
|
|
$terpri
|
|
"The XML module was implemented by Daniel Ehrenberg, with edits by Slava Pestov. Main functions implemented include:"
|
|
{ $subsection string>xml }
|
|
{ $subsection xml>string }
|
|
{ $subsection xml-parse-error }
|
|
{ $subsection xml-reprint }
|
|
{ $subsection POSTPONE: PROCESS: }
|
|
{ $subsection POSTPONE: TAG: } ;
|