javax.xml.stream.events

Interface StartElement

public interface StartElement extends XMLEvent

A start-element event.
Method Summary
AttributegetAttributeByName(QName name)
Returns an attribute by name.
IteratorgetAttributes()
Returns the attributes declared on this element.
QNamegetName()
Returns the element name.
NamespaceContextgetNamespaceContext()
Returns a read-only namespace context associated with this event.
IteratorgetNamespaces()
Returns the namespaces declared on this element.
StringgetNamespaceURI(String prefix)
Returns the namespace URI associated with the given prefix.

Method Detail

getAttributeByName

public Attribute getAttributeByName(QName name)
Returns an attribute by name.

getAttributes

public Iterator getAttributes()
Returns the attributes declared on this element.

getName

public QName getName()
Returns the element name.

getNamespaceContext

public NamespaceContext getNamespaceContext()
Returns a read-only namespace context associated with this event.

getNamespaces

public Iterator getNamespaces()
Returns the namespaces declared on this element.

getNamespaceURI

public String getNamespaceURI(String prefix)
Returns the namespace URI associated with the given prefix.