WBDOMElement delement = (WBDOMElement) element;
try {
WBSAXNameSizer nameSummer = new WBSAXNameSizer(accumulator);
WBSAXAttributeValueSizer attributeValueSummer =
new WBSAXAttributeValueSizer(accumulator);
AttributesInternalIterator attributesSummer =
new VisitorAttributesIterator(nameSummer,
attributeValueSummer);
// Calculate the size of the element name.
delement.accept(nameSummer);
// Calculate the size of the attributes