SaxHandler.startElement

Receive notification of the beginning of an element.

<p>The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding {@link #endElement endElement} event for every startElement event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement event.</p>

<p>This event allows up to three name components for each element:</p>

<ol> <li>the Namespace URI;</li> <li>the local name; and</li> <li>the qualified (prefixed) name.</li> </ol>

<p>Any or all of these may be provided, depending on the values of the <var>http://xml.org/sax/features/namespaces</var> and the <var>http://xml.org/sax/features/namespace-prefixes</var> properties:</p>

<ul> <li>the Namespace URI and local name are required when the namespaces property is <var>true</var> (the default), and are optional when the namespaces property is <var>false</var> (if one is specified, both must be);</li> <li>the qualified name is required when the namespace-prefixes property is <var>true</var>, and is optional when the namespace-prefixes property is <var>false</var> (the default).</li> </ul>

<p>Note that the attribute list provided will contain only attributes with explicit values (specified or defaulted): #IMPLIED attributes will be omitted. The attribute list will contain attributes used for Namespace declarations (xmlns* attributes) only if the <code>http://xml.org/sax/features/namespace-prefixes</code> property is true (it is false by default, and support for a true value is optional).</p>

<p>Like {@link #characters characters()}, attribute values may have characters that need more than one <code>char</code> value. </p>

@param uri the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed @param localName the local name (without prefix), or the empty string if Namespace processing is not being performed @param qName the qualified name (with prefix), or the empty string if qualified names are not available @param atts the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. The value of this object after startElement returns is undefined @throws org.xml.sax.SAXException any SAX exception, possibly wrapping another exception @see #endElement @see org.xml.sax.Attributes @see org.xml.sax.helpers.AttributesImpl

class SaxHandler(Ch = char)
void
startElement
(
Ch[] uri
,,
Ch[] qName
,)

Meta