Uses of Interface javax.xml.stream.events.Attribute (Java Platform SE 8 )
Date: 2026-07-22

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

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

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

    Methods in javax.xml.stream that return Attribute
    Modifier and Type | Method and Description
    --- | ---
    `abstract Attribute` | XMLEventFactory.`createAttribute(QName name, String value)` Create a new Attribute
    `abstract Attribute` | XMLEventFactory.`createAttribute(String localName, String value)` Create a new Attribute
    `abstract Attribute` | XMLEventFactory.`createAttribute(String prefix, String namespaceURI, String localName, String value)` Create a new Attribute

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

    Subinterfaces of Attribute in javax.xml.stream.events
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `Namespace` An interface that contains information about a namespace.

    Methods in javax.xml.stream.events that return Attribute
    Modifier and Type | Method and Description
    --- | ---
    `Attribute` | StartElement.`getAttributeByName(QName name)` Returns the attribute referred to by this name

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.