Interface ElementFactory
public interface ElementFactory
{
// Methods
Element createElement(int type, Name tag);
void parsed(Element elem);
}
This interface specifies a method to create elements for an XML element tree. This is used by the XML Document to create nodes in the tree as it parses the elements.
Element createElement(int type, Name tag);
Creates an element with the specified tag for the specified type of element.
Return Value:
Returns the created element.
Parameter | Description |
tag
| The name of the element.
|
type
| One of the predefined Element types that can be returned from Element.getType.
|
See Also: com.ms.xml.om.Element
void parsed(Element elem);
Notifies that the element is fully parsed.
Parameter | Description |
elem
| The element parsed.
|
See Also: com.ms.xml.om.Element