Iterator children = this.getChildren();
if (cache) {
while (children.hasNext()) {
OMNodeEx omNode = (OMNodeEx) children.next();
omNode.serialize(omOutput);
}
} else {
while (children.hasNext()) {
OMNodeEx omNode = (OMNodeEx) children.next();
omNode.serializeAndConsume(omOutput);
}
}
}