}
}
else if (stack.size() > 0)
{
WingMergeableElement peek = stack.peek();
WingMergeableElement child = null;
if (peek != null)
{
child = peek.mergeChild(namespaceURI, localName, qName,
attributes);
}
// Check if we should construct a new portion of the document.
if (child instanceof UserMeta)
{
// Create the UserMeta
this.addUserMeta((UserMeta) child);
}
else if (child instanceof PageMeta)
{
// Create the PageMeta
this.addPageMeta((PageMeta) child);
}
else if (child instanceof Body)
{
// Create the Body
this.addBody((Body) child);
}
else if (child instanceof Options)
{
// Create the Options
this.addOptions((Options) child);
}
// Update any attributes of this merged element.
if (child != null)
attributes = child.merge(attributes);
stack.push(child);
}
// Send off the event with nothing modified except for the
// attributes (possibly)
super.startElement(namespaceURI, localName, qName, attributes);