uplevel #0 $options(-errorcommand) [list "unknown processing instruction \"<$tag>\" around line $state(line)"]
}
}
}
*,1,* -
*,0,/,/ {
# Syntax error
uplevel #0 $options(-errorcommand) [list [list syntax error: closed/empty tag: tag $tag param $param empty $empty close $close around line $state(line)]]
}
}
# Process character data
if {$state(haveDocElement) && [llength $state(stack)]} {
# Check if the internal DTD entity is in the text
regsub -all &xml:intdtd\; $text \[$options(-internaldtd)\] text
# Look for entity references
if {([array size entities] || [string length $options(-entityreferencecommand)]) && \