pre/post-content ( string pre? -- * )
XML parsing errors

Prev:no-entity ( line -- * )
Next:unclosed-quote ( -- * )


Class description
Describes the error where a non-whitespace string is used before or after the main tag in an XML document. Contains two slots: string contains the offending string, and pre? is t if it occured before the main tag and f if it occured after.

Bad XML document for the error
hello <main-tag/>



M: pre/post-content error.
"The text string:" print dup string>> . "was used " write
pre?>> "before" "after" ? write " the main tag." print ;