
SML::Item - parsed SML item object
$Revision: 1.3 $ $Date: 2004/05/23 21:38:47 $

Get type of item, 'E'lement, 'C'omment, 'T'ext.
Return true if item is element.
Return true if item is comment.
Return true if item is text.
Return true if item is pi (processing instruction), eg it has one of '!', '?', '/' modifiers in tag name, see example:
<!section> <?my-pi> </my-tag>
Yes, the closing tag is also considered processing instruction, however, it could be tested by is_closing_tag() method.
Return true if item is opening tag eg. element !pi.
Return true if item is closing tag eg. get_pi() eq '/'.
Get pi (processing instruction) mark. Valid only for element type of item, otherwise false (by empty string '').
Get name of element tag. Valid only for element type of item, otherwise false (by empty string '').
Get text value of text or comment item type. For element type return allway false (by empty string '').
Get attributes part of tag body as plain uparsed, unmodified string value. Valid only for element type of item, otherwise false (by empty string '').
Get value of named attribute, optionally from specified position.
Get attribute by $name represented as arrayref of corresponding values.
Set attribute $name optionaly at specified position $pos.
Get parsed attributes.
Get list of all named attributes.
Build new attributes_str from parsed attributes info, replacing the old one attributes_str.
If $strict >= 1 or any true value, drop invalid attribute body entries, eg. <myTag #$ myAttr=1> --> <myTag myAttr=1>.
If $strict >= 2, build only attributes in the form of single token or token with equal sign and quoted values, eg. <myTag #$ myAttr=1> --> <myTag myAttr="1">
