javax.xml.stream.events
Interface StartElement

All Superinterfaces:
XMLEvent, XMLStreamConstants

public interface StartElement
extends XMLEvent

A start-element event.


Field Summary
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Method Summary
 Attribute getAttributeByName(QName name)
          Returns an attribute by name.
 Iterator getAttributes()
          Returns the attributes declared on this element.
 QName getName()
          Returns the element name.
 NamespaceContext getNamespaceContext()
          Returns a read-only namespace context associated with this event.
 Iterator getNamespaces()
          Returns the namespaces declared on this element.
 String getNamespaceURI(String prefix)
          Returns the namespace URI associated with the given prefix.
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Method Detail

getName

QName getName()
Returns the element name.


getAttributes

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


getNamespaces

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


getAttributeByName

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


getNamespaceContext

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


getNamespaceURI

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