extra-attrs ( line -- * ) - Factor Documentation

extra-attrs ( line -- * )
XML parsing errors



Vocabulary
xml .errors

Class description
XML parsing error describing the case where the XML prolog (<?xml ...?>) contains attributes other than the three allowed ones, standalone, version and encoding. Contains one slot, attrs, which is a hashtable of all the extra attributes' names.

Bad XML document for the error
<?xml version='1.0' reason='because I said so'?> <foo/>


Definition
IN: xml.errors

ERROR: extra-attrs line column attrs ;


Methods
USING: accessors debugger generic io kernel prettyprint
xml.errors ;

M: extra-attrs error.
dup M\ extra-attrs error. (call-next-method)
"Extra attributes included in xml version declaration:"
print attrs>> . ;

AltStyle によって変換されたページ (->オリジナル) /