Stay organized with collections
Save and categorize content based on your preferences.
ElementListener
interface ElementListener : EndElementListener, StartElementListener
Listens for the beginning and ending of elements.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ElementListener\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nElementListener\n===============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/sax/ElementListener \"View this page in Java\") \n\n```\ninterface ElementListener : EndElementListener, StartElementListener\n```\n\n|----------------------------------|\n| [android.sax.ElementListener](#) |\n\nListens for the beginning and ending of elements.\n\nSummary\n-------\n\n| Inherited functions ||\n|---|---|\n| From class [EndElementListener](/reference/kotlin/android/sax/EndElementListener) |------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [end](/reference/kotlin/android/sax/EndElementListener#end())`()` Invoked at the end of an element. \u003cbr /\u003e | ||\n| From class [StartElementListener](/reference/kotlin/android/sax/StartElementListener) |------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [start](/reference/kotlin/android/sax/StartElementListener#start(org.xml.sax.Attributes))`(`attributes:` `[Attributes](../../org/xml/sax/Attributes.html#)!`)` Invoked at the beginning of an element. \u003cbr /\u003e | ||"]]