Uses of Interface javax.xml.stream.events.StartElement (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Interface
javax.xml.stream.events.StartElement

- Packages that use StartElement
  Package | Description
  --- | ---
  javax.xml.stream |
  javax.xml.stream.events |

- - ### Uses of StartElement in javax.xml.stream

    Methods in javax.xml.stream that return StartElement
    Modifier and Type | Method and Description
    --- | ---
    `abstract StartElement` | XMLEventFactory.`createStartElement(QName name, Iterator attributes, Iterator namespaces)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)` Create a new StartElement.
    `abstract StartElement` | XMLEventFactory.`createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)` Create a new StartElement.

  - ### Uses of StartElement in javax.xml.stream.events

    Methods in javax.xml.stream.events that return StartElement
    Modifier and Type | Method and Description
    --- | ---
    `StartElement` | XMLEvent.`asStartElement()` Returns this event as a start element event, may result in a class cast exception if this event is not a start element.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.