// TODO: LG, I do not see a good way to do this.
if (BooleanUtils.isTrue(this.xmlize)) {
if (val instanceof Node || val instanceof Node[] || val instanceof XMLizable)
Invoker.executeNode(consumer, val, stripRoot);
else {
SAXParser parser = executionContext.getSaxParser();
InputSource source = new InputSource(new ByteArrayInputStream(val.toString().getBytes()));
IncludeXMLConsumer includeConsumer = new IncludeXMLConsumer(consumer);
includeConsumer.setIgnoreRootElement(stripRoot);
parser.parse(source, includeConsumer);
}
} else
Invoker.executeNode(consumer, val, stripRoot);
} catch (Exception e) {
throw new SAXParseException(e.getMessage(), getLocation(), e);