### Start Element Event Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDValidator.html Handles the start of an element, receiving the element's QName, attributes, and augmentations. ```Java public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### getStart() Source: https://xerces.apache.org/xerces2-j/javadocs/api/index-all.html Starting sequence number. ```APIDOC ## getStart() ### Description Starting sequence number. ### Method Method ### Endpoint N/A ### Parameters None ### Request Example None ### Response None ``` -------------------------------- ### Start Document Event Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDValidator.html Handles the start of an XML document, receiving locator, encoding, namespace context, and augmentations. ```Java public void startDocument(org.apache.xerces.xni.XMLLocator locator, java.lang.String encoding, org.apache.xerces.xni.NamespaceContext namespaceContext, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### NamespaceSupport.pushContext Source: https://xerces.apache.org/xerces2-j/javadocs/api/index-all.html Starts a new Namespace context. ```APIDOC ## pushContext() ### Description Start a new Namespace context. ### Method `pushContext()` ``` -------------------------------- ### REUtil Main Method - Sample Entry Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xpath/regex/REUtil.html Provides a sample entry point for the REUtil class, demonstrating its command-line usage for regular expression matching. Expects regex and target string as arguments. ```java public static void main(java.lang.String[] argv) ``` -------------------------------- ### Get Start Attribute - HTMLOListElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/html/HTMLOListElement.html Retrieves the starting sequence number for the ordered list. This attribute is deprecated in HTML 4.0. ```java intgetStart() ``` -------------------------------- ### main Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xpath/regex/REUtil.html Sample entry point for the REUtil class. This method is intended for internal use and may be altered or removed. ```APIDOC ## main ### Description Sample entry. This method can be used to test the REUtil class from the command line. ### Usage `org.apache.xerces.utils.regex.REUtil ` ### Method Signature `public static void main(String[] argv)` ``` -------------------------------- ### Get Start Offset of a Range Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ranges/Range.html Retrieves the offset within the starting node of the Range. Throws DOMException if detach() has already been invoked. ```java int getStartOffset() throws DOMException; ``` -------------------------------- ### Constructor Details Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/SecureProcessingConfiguration.html Provides information on how to instantiate the SecureProcessingConfiguration class with different initialization options. ```APIDOC ## Constructors ### `SecureProcessingConfiguration()` Default constructor. ### `SecureProcessingConfiguration(SymbolTable symbolTable)` Constructs a parser configuration using the specified symbol table. **Parameters:** * `symbolTable` - The symbol table to use. ### `SecureProcessingConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)` Constructs a parser configuration using the specified symbol table and grammar pool. **Parameters:** * `symbolTable` - The symbol table to use. * `grammarPool` - The grammar pool to use. ### `SecureProcessingConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool, org.apache.xerces.xni.parser.XMLComponentManager parentSettings)` Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings. **Parameters:** * `symbolTable` - The symbol table to use. * `grammarPool` - The grammar pool to use. * `parentSettings` - The parent settings. ``` -------------------------------- ### Get All Attributes Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/events/StartElement.html Returns an iterator over all attributes of the start element. This method is useful for iterating through all available attributes. ```java java.util.Iterator getAttributes() ``` -------------------------------- ### createStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/XMLEventFactory.html Creates a StartElement with a QName, attributes, and namespaces. ```APIDOC ## createStartElement ### Description Creates a StartElement with a QName, attributes, and namespaces. ### Method Signature ```java public abstract StartElement createStartElement(QName name, java.util.Iterator attributes, java.util.Iterator namespaces) ``` ``` -------------------------------- ### Get Current Node Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/traversal/TreeWalker.html Returns the node at which the TreeWalker is currently positioned. This is the node from which subsequent traversal operations will start. ```java Node getCurrentNode() ``` -------------------------------- ### Get Attribute by Name Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/events/StartElement.html Retrieves a specific attribute of the start element by its QName. Returns null if the attribute is not found. ```java Attribute getAttributeByName(QName name) ``` -------------------------------- ### QNameDV Constructor Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dv/xs/QNameDV.html Initializes a new instance of the QNameDV class. ```APIDOC ## QNameDV() ### Description Constructs a new QNameDV object. ### Constructor `public QNameDV()` ``` -------------------------------- ### Get All Namespaces Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/events/StartElement.html Returns an iterator over all namespace declarations associated with the start element. This includes default namespace declarations and prefixed ones. ```java java.util.Iterator getNamespaces() ``` -------------------------------- ### createStartElement (with QName, attributes, namespaces) Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event with the specified QName, attributes, and namespaces. ```APIDOC ## createStartElement (with QName, attributes, namespaces) ### Description Creates a StartElement event with the specified QName, attributes, and namespaces. This method is specified by the javax.xml.stream.XMLEventFactory interface. ### Method Signature ```java public javax.xml.stream.events.StartElement createStartElement(javax.xml.namespace.QName name, java.util.Iterator attributes, java.util.Iterator namespaces) ``` ### Parameters * **name** (javax.xml.namespace.QName) - The QName of the start element. * **attributes** (java.util.Iterator) - An iterator of attributes. * **namespaces** (java.util.Iterator) - An iterator of namespaces. ``` -------------------------------- ### Get Element Name Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/events/StartElement.html Retrieves the qualified name (QName) of the start element. This includes the local name, namespace URI, and prefix. ```java QName getName() ``` -------------------------------- ### createStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/XMLEventFactory.html Creates a StartElement with a prefix, namespace URI, and local name. ```APIDOC ## createStartElement ### Description Creates a StartElement with a prefix, namespace URI, and local name. ### Method Signature ```java public abstract StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName) ``` ``` -------------------------------- ### Get Container Node Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/dom/NodeImpl.html For non-child nodes, returns the node that references this node. For example, the owning element for an attribute. This is a protected method. ```java protected org.w3c.dom.Node getContainer() ``` -------------------------------- ### Get Namespace URI by Prefix with Start and End Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/xinclude/MultipleScopeNamespaceSupport.html Looks up a prefix within a specified range of contexts and returns the associated namespace URI. ```Java public java.lang.String getURI(java.lang.String prefix, int start, int end) ``` -------------------------------- ### createStartElement (with prefix, namespaceUri, localName, attributes, namespaces, context) Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event with the specified prefix, namespace URI, local name, attributes, namespaces, and namespace context. ```APIDOC ## createStartElement (with prefix, namespaceUri, localName, attributes, namespaces, context) ### Description Creates a StartElement event with the specified prefix, namespace URI, local name, attributes, namespaces, and namespace context. This method is specified by the javax.xml.stream.XMLEventFactory interface. ### Method Signature ```java public javax.xml.stream.events.StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName, java.util.Iterator attributes, java.util.Iterator namespaces, javax.xml.namespace.NamespaceContext context) ``` ### Parameters * **prefix** (java.lang.String) - The prefix of the start element. * **namespaceUri** (java.lang.String) - The namespace URI of the start element. * **localName** (java.lang.String) - The local name of the start element. * **attributes** (java.util.Iterator) - An iterator of attributes. * **namespaces** (java.util.Iterator) - An iterator of namespaces. * **context** (javax.xml.namespace.NamespaceContext) - The namespace context. ``` -------------------------------- ### Get Prefix by Namespace URI with Start and End Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/xinclude/MultipleScopeNamespaceSupport.html Looks up a namespace URI within a specified range of contexts and returns one of the associated prefixes. ```Java public java.lang.String getPrefix(java.lang.String uri, int start, int end) ``` -------------------------------- ### createStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/XMLEventFactory.html Creates a StartElement with a prefix, namespace URI, local name, attributes, and namespaces. ```APIDOC ## createStartElement ### Description Creates a StartElement with a prefix, namespace URI, local name, attributes, and namespaces. ### Method Signature ```java public abstract StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName, java.util.Iterator attributes, java.util.Iterator namespaces) ``` ``` -------------------------------- ### init Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDValidator.html Initialization. ```APIDOC ## init ### Description Initialization. ### Method `protected void` ### Signature `init()` ``` -------------------------------- ### Get Built-In Kind Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dv/xs/XSSimpleTypeDelegate.html Returns a short integer representing the closest built-in type category this simple type represents or is derived from. For example, it returns INTEGER_DV for a type derived from integer. Specified by the XSSimpleTypeDefinition interface. ```java public short getBuiltInKind() ``` -------------------------------- ### reset() Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/io/UCSReader.html Resets the stream. If the stream has been marked, then attempts to reposition it at the mark. If the stream has not been marked, then attempts to reset it in some way appropriate to the particular stream, for example by repositioning it to its starting point. Not all character-input streams support the reset() operation, and some support reset() without supporting mark(). ```APIDOC ## reset() ### Description Reset the stream. If the stream has been marked, then attempt to reposition it at the mark. If the stream has not been marked, then attempt to reset it in some way appropriate to the particular stream, for example by repositioning it to its starting point. Not all character-input streams support the reset() operation, and some support reset() without supporting mark(). ### Method Signature ```java public void reset() throws java.io.IOException ``` ### Throws * `java.io.IOException` - If the stream has not been marked, or if the mark has been invalidated, or if the stream does not support reset(), or if some other I/O error occurs. ``` -------------------------------- ### main Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xpath/XPath.html Main program entry point for testing or demonstration. ```APIDOC ## main ### Description Main program entry point. This method can be used for testing or demonstration purposes. ### Signature ```java public static void main(java.lang.String[] argv) throws java.lang.Exception ``` ### Parameters * **argv** (java.lang.String[]) - Command line arguments. ``` -------------------------------- ### Get Attribute Name by Index Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/util/AttributesProxy.html Retrieve the name of an attribute at a specific index within the attribute list. Note that attributes without values, declared as #IMPLIED without a specified value in the start tag, are omitted from this list. If the attribute has a namespace prefix, it will be included in the returned name. ```java public java.lang.String getName(int i) ``` -------------------------------- ### createStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/XMLEventFactory.html Creates a StartElement with a prefix, namespace URI, local name, attributes, namespaces, and a NamespaceContext. ```APIDOC ## createStartElement ### Description Creates a StartElement with a prefix, namespace URI, local name, attributes, namespaces, and a NamespaceContext. ### Method Signature ```java public abstract StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName, java.util.Iterator attributes, java.util.Iterator namespaces, NamespaceContext context) ``` ``` -------------------------------- ### startPrefixMapping Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/DefaultHandler.html Receive notification of the start of a Namespace mapping. By default, does nothing. Application writers may override this method in a subclass to take specific actions at the start of each Namespace prefix scope. ```APIDOC ## startPrefixMapping ### Description Receive notification of the start of a Namespace mapping. By default, does nothing. Application writers may override this method in a subclass to take specific actions at the start of each Namespace prefix scope (such as storing the prefix mapping). ### Method Signature ```java public void startPrefixMapping(String prefix, String uri) ``` ### Parameters * **prefix** (String) - The Namespace prefix being declared. * **uri** (String) - The Namespace URI mapped to the prefix. ### Throws * `SAXException` - Any SAX exception, possibly wrapping another exception. ``` -------------------------------- ### Start Parameter Entity Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.html Notifies of the start of a parameter entity. ```APIDOC ## startParameterEntity ### Description This method notifies of the start of a parameter entity. ### Method `void startParameterEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, java.lang.String encoding, org.apache.xerces.xni.Augmentations augmentations)` ``` -------------------------------- ### Start General Entity Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.html Notifies of the start of a general entity. ```APIDOC ## startGeneralEntity ### Description This method notifies the start of a general entity. ### Method `void startGeneralEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs)` ``` -------------------------------- ### startPrefixMapping Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/DefaultHandler.html Receive notification of the start of a Namespace mapping. ```APIDOC ## startPrefixMapping(String prefix, String uri) ### Description Receive notification of the start of a Namespace mapping. **Specified by:** `startPrefixMapping` in interface `ContentHandler` ### Method `void startPrefixMapping(java.lang.String prefix, java.lang.String uri)` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (void) None #### Response Example None ### Throws - `SAXException` ``` -------------------------------- ### Get Schema Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/parsers/DocumentBuilderFactory.html Gets the Schema object specified through the setSchema method. ```APIDOC ## getSchema ### Description Gets the `Schema` object specified through the `setSchema(Schema schema)` method. ### Method `Schema getSchema()` ### Returns The `Schema` object, or `null` if no schema has been set. ``` -------------------------------- ### Method: pushContext Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/NamespaceSupport.html Starts a new Namespace context. ```APIDOC ## Method: pushContext ### Description Starts a new Namespace context. The new context will automatically inherit the declarations of its parent context, but it will also keep track of which declarations were made within this context. Event callback code should start a new context once per element. SAX drivers would typically push a new context at the beginning of each XML element. ### Signature ```java public void pushContext() ``` ### See Also `ContentHandler`, `popContext()` ``` -------------------------------- ### Start Attribute List Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.html Handles the start of an attribute list associated with an element. ```java public void startAttlist(java.lang.String elementName, org.apache.xerces.xni.Augmentations augmentations) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### startPrefixMapping Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/ContentHandler.html Begin the scope of a prefix-URI Namespace mapping. ```APIDOC ## startPrefixMapping ### Description Begin the scope of a prefix-URI Namespace mapping. ### Method `void` ### Endpoint `startPrefixMapping(java.lang.String prefix, java.lang.String uri)` ### Parameters #### Path Parameters - **prefix** (java.lang.String) - Description - **uri** (java.lang.String) - Description ``` -------------------------------- ### startElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/XMLFilterImpl.html Filter a start element event. This method is called when an element starts. ```APIDOC ## startElement ### Description Filter a start element event. This method is called when an element starts. ### Method public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes atts) throws SAXException ### Parameters #### Path Parameters - **uri** (java.lang.String) - Required - The element's Namespace URI, or the empty string. - **localName** (java.lang.String) - Required - The element's local name, or the empty string. - **qName** (java.lang.String) - Required - The element's qualified (prefixed) name, or the empty string. - **atts** (Attributes) - Required - The element's attributes. ### Throws SAXException - The client may throw an exception during processing. ### See Also `ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)`, `Attributes`, `AttributesImpl` ``` -------------------------------- ### Start Content Model Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/models/XSAllCM.html Called on entering the first element of a content model. Returns the initial state of the content model. ```java public int[] startContentModel() ``` -------------------------------- ### Get Attribute Value by Name Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/AttributeListImpl.html Get the value of an attribute using its name. ```java public java.lang.String getValue(java.lang.String name) ``` -------------------------------- ### createStartElement (with prefix, namespaceUri, localName, attributes, namespaces) Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event with the specified prefix, namespace URI, local name, attributes, and namespaces. ```APIDOC ## createStartElement (with prefix, namespaceUri, localName, attributes, namespaces) ### Description Creates a StartElement event with the specified prefix, namespace URI, local name, attributes, and namespaces. This method is specified by the javax.xml.stream.XMLEventFactory interface. ### Method Signature ```java public javax.xml.stream.events.StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName, java.util.Iterator attributes, java.util.Iterator namespaces) ``` ### Parameters * **prefix** (java.lang.String) - The prefix of the start element. * **namespaceUri** (java.lang.String) - The namespace URI of the start element. * **localName** (java.lang.String) - The local name of the start element. * **attributes** (java.util.Iterator) - An iterator of attributes. * **namespaces** (java.util.Iterator) - An iterator of namespaces. ``` -------------------------------- ### createStartElement (with prefix, namespaceUri, localName) Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event with the specified prefix, namespace URI, and local name. ```APIDOC ## createStartElement (with prefix, namespaceUri, localName) ### Description Creates a StartElement event with the specified prefix, namespace URI, and local name. This method is specified by the javax.xml.stream.XMLEventFactory interface. ### Method Signature ```java public javax.xml.stream.events.StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName) ``` ### Parameters * **prefix** (java.lang.String) - The prefix of the start element. * **namespaceUri** (java.lang.String) - The namespace URI of the start element. * **localName** (java.lang.String) - The local name of the start element. ``` -------------------------------- ### Get Attribute Type by Name Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/AttributeListImpl.html Get the type of an attribute using its name. ```java public java.lang.String getType(java.lang.String name) ``` -------------------------------- ### Namespace.getPrefix() Source: https://xerces.apache.org/xerces2-j/javadocs/api/index-all.html Get the namespace prefix. ```APIDOC ## getPrefix() ### Description ### Method Method in interface javax.xml.stream.events.Namespace ``` -------------------------------- ### startParameterEntity Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDProcessor.html Notifies the start of a parameter entity. Parameter entity names start with a '%' character. ```APIDOC ## startParameterEntity ### Description This method notifies of the start of a parameter entity. The parameter entity name start with a '%' character. ### Method Signature ```java public void startParameterEntity(String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, String encoding, org.apache.xerces.xni.Augmentations augs) ``` ### Parameters - `name` (string) - The name of the parameter entity. - `identifier` (org.apache.xerces.xni.XMLResourceIdentifier) - The resource identifier. - `encoding` (string) - The auto-detected IANA encoding name of the entity stream. This value will be null in those situations where the entity encoding is not auto-detected (e.g. internal parameter entities). - `augs` (org.apache.xerces.xni.Augmentations) - Additional information that may include infoset augmentations. ### Throws - `org.apache.xerces.xni.XNIException` - Thrown by handler to signal an error. ``` -------------------------------- ### QName Constructor Details Source: https://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/QName.html Detailed explanations for the constructors of the QName class. ```APIDOC ### Constructor: QName() Default constructor. ### Constructor: QName(String prefix, String localpart, String rawname, String uri) Constructs a QName with the specified values. Parameters: - `prefix` (String): The qname prefix. (e.g. "a") - `localpart` (String): The qname localpart. (e.g. "foo") - `rawname` (String): The qname rawname. (e.g. "a:foo") - `uri` (String): The URI binding. (e.g. "http://foo.com/mybinding") ### Constructor: QName(QName qname) Constructs a copy of the specified QName. Parameters: - `qname` (QName): The qualified name to be copied. ``` -------------------------------- ### Start of DTD Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDProcessor.html Called when the start of the DTD is encountered. It receives the locator and additional information. ```Java public void startDTD(org.apache.xerces.xni.XMLLocator locator, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### StartDocumentImpl Constructor Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/events/StartDocumentImpl.html Constructs a StartDocumentImpl object with the specified properties. ```APIDOC ## StartDocumentImpl Constructor ### Description Constructs a StartDocumentImpl object. ### Parameters * `charEncoding` (String) - The character encoding scheme. * `encodingSet` (boolean) - Indicates if the encoding has been set. * `isStandalone` (boolean) - Indicates if the document is standalone. * `standaloneSet` (boolean) - Indicates if the standalone status has been set. * `version` (String) - The XML version. * `location` (javax.xml.stream.Location) - The location of the event. ``` -------------------------------- ### getAttributePSVI Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/AbstractSAXParser.html Provides AttributePSVI given the index of an attribute information item in the current element's attribute list. The method must be called by an application while in the scope of the methods which report the start and end of an element at a point where the attribute list is available. For example, for SAX the method must be called while in the scope of the document handler's startElement call. If the method is called outside of the specified scope, the return value is undefined. ```APIDOC ## getAttributePSVI ### Description Provides `AttributePSVI` given the index of an attribute information item in the current element's attribute list. The method must be called by an application while in the scope of the methods which report the start and end of an element at a point where the attribute list is available. For example, for SAX the method must be called while in the scope of the document handler's `startElement` call. If the method is called outside of the specified scope, the return value is undefined. ### Method ```java public org.apache.xerces.xs.AttributePSVI getAttributePSVI(int index) ``` ### Parameters #### Path Parameters - **index** (int) - Required - The attribute index. ### Returns - **AttributePSVI** - The post schema validation properties of the attribute. ``` -------------------------------- ### QName Constructors Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/namespace/QName.html Provides details on how to construct QName objects, including constructors that specify the local part, namespace URI, and prefix. ```APIDOC ## QName Constructors ### `public QName(String localPart)` Constructs a `QName` specifying only the local part. The Namespace URI defaults to `XMLConstants.NULL_NS_URI` and the prefix to `XMLConstants.DEFAULT_NS_PREFIX`. An `IllegalArgumentException` is thrown if `localPart` is `null`. An empty string for `localPart` is allowed. **Parameters:** * `localPart` - local part of the `QName` ### `public QName(String namespaceURI, String localPart)` Constructs a `QName` specifying the Namespace URI and local part. The prefix defaults to `XMLConstants.DEFAULT_NS_PREFIX`. **Parameters:** * `namespaceURI` - Namespace URI of the `QName` * `localPart` - local part of the `QName` ### `public QName(String namespaceURI, String localPart, String prefix)` Constructs a `QName` specifying the Namespace URI, local part, and prefix. **Parameters:** * `namespaceURI` - Namespace URI of the `QName` * `localPart` - local part of the `QName` * `prefix` - prefix of the `QName` ``` -------------------------------- ### Get Feature in SchemaDOMParser Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/SchemaDOMParser.html Gets the state of a feature on the parser configuration. This method delegates to SchemaParsingConfig.getFeature. ```Java public boolean getFeature(java.lang.String featureId) ``` -------------------------------- ### startNamespaceScope Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDValidator.html Handles the start of a namespace scope. ```APIDOC ## startNamespaceScope ### Description Handles the start of a namespace scope. ### Method `protected void` ### Signature `startNamespaceScope(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs)` ``` -------------------------------- ### Get Attribute Value by Index Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/AttributeListImpl.html Get the value of an attribute using its position (index) in the list. ```java public java.lang.String getValue(int i) ``` -------------------------------- ### DefaultHandler.startPrefixMapping Method Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/DefaultHandler.html Callback method to receive notification of the start of a Namespace mapping. This is a default implementation that does nothing. ```java void startPrefixMapping(java.lang.String prefix, java.lang.String uri) ``` -------------------------------- ### StartElementImpl Constructor Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/events/StartElementImpl.html Initializes a new instance of the StartElementImpl class with the specified name, attributes, namespaces, namespace context, and location. ```APIDOC ## StartElementImpl Constructor ### Description Initializes a new instance of the StartElementImpl class. ### Parameters - **name** (javax.xml.namespace.QName) - The qualified name of the element. - **attributes** (java.util.Iterator) - An iterator over the attributes of the element. - **namespaces** (java.util.Iterator) - An iterator over the namespaces declared by the element. - **namespaceContext** (javax.xml.namespace.NamespaceContext) - The namespace context for the element. - **location** (javax.xml.stream.Location) - The location of the start element in the XML document. ``` -------------------------------- ### Get Attribute Type by Index Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/AttributeListImpl.html Get the type of an attribute using its position (index) in the list. ```java public java.lang.String getType(int i) ``` -------------------------------- ### Get Attribute Name by Index Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/AttributeListImpl.html Get the name of an attribute using its position (index) in the list. ```java public java.lang.String getName(int i) ``` -------------------------------- ### startDocument Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/SchemaDOMParser.html Called at the beginning of the document to initialize parsing context. ```APIDOC ## startDocument ### Description Called at the start of the document. This method is part of the XMLDocumentHandler interface and is overridden from the DefaultXMLDocumentHandler class. ### Signature ```java public void startDocument(org.apache.xerces.xni.XMLLocator locator, java.lang.String encoding, org.apache.xerces.xni.NamespaceContext namespaceContext, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` ### Parameters * `locator` (org.apache.xerces.xni.XMLLocator) - The document locator, or null if the document location cannot be reported. It is strongly recommended that a locator be supplied that can at least report the system identifier of the document. * `encoding` (java.lang.String) - The auto-detected IANA encoding name of the entity stream. This value will be null for internal entities or when parsing from a java.io.Reader. * `namespaceContext` (org.apache.xerces.xni.NamespaceContext) - The namespace context in effect at the start of this document. Implementors should copy namespace bindings if important. * `augs` (org.apache.xerces.xni.Augmentations) - Additional information that may include infoset augmentations. ### Throws * `org.apache.xerces.xni.XNIException` - Thrown by handler to signal an error. ``` -------------------------------- ### Start of CDATA Section Source: https://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/XMLDocumentHandler.html Notifies the start of a CDATA section. Augmentations may provide additional information. ```java void startCDATA(Augmentations augs) throws XNIException ``` -------------------------------- ### startElement(String qName, AttributeList qAtts) Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/ParserAdapter.html Adapts a SAX1 startElement event. If necessary, performs Namespace processing. This is an adapter implementation method and should not be called directly by the user. ```APIDOC ## startElement(String qName, AttributeList qAtts) ### Description Adapts a SAX1 startElement event. If necessary, performs Namespace processing. This is an adapter implementation method and should not be called directly by the user. ### Method void ### Parameters - **qName** (String) - The qualified (prefixed) name. - **qAtts** (AttributeList) - The XML attribute list (with qnames). ### Throws - `SAXException` - The client may raise a processing exception. ``` -------------------------------- ### startContentModel Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/models/XSEmptyCM.html Called on entering the first element whose type has this content model. Returns the initial state. ```APIDOC ## startContentModel() ### Description This method is called on entering the first element whose type has this content model. It returns the initial state of the content model. ### Method `public int[] startContentModel()` ### Returns Start state of the content model ``` -------------------------------- ### Start Parameter Entity Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.html Notifies the start of a parameter entity. Parameter entity names begin with a '%' character. ```java public void startParameterEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, java.lang.String encoding, org.apache.xerces.xni.Augmentations augmentations) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### createStartElement with QName, Attributes, and Namespaces Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event using a QName, an iterator of attributes, and an iterator of namespaces. This method is specified by the XMLEventFactory interface. ```java public javax.xml.stream.events.StartElement createStartElement(javax.xml.namespace.QName name, java.util.Iterator attributes, java.util.Iterator namespaces) ``` -------------------------------- ### Get Lexical Facet Value Method Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dv/xs/XSSimpleTypeDelegate.html A convenience method to get the lexical value of a specified facet. ```java java.lang.String getLexicalFacetValue(short facetName) ``` -------------------------------- ### handleStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/XMLNamespaceBinder.html Handles the start of an element. This is a protected method. ```APIDOC ## handleStartElement ### Description Handles the start of an element. This is a protected method. ### Method `protected void handleStartElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs, boolean isEmpty)` ### Parameters - **element** (org.apache.xerces.xni.QName) - The element. - **attributes** (org.apache.xerces.xni.XMLAttributes) - The attributes of the element. - **augs** (org.apache.xerces.xni.Augmentations) - Additional information. - **isEmpty** (boolean) - Indicates if the element is empty. ### Throws - `org.apache.xerces.xni.XNIException` ``` -------------------------------- ### Start of DTD Notification Source: https://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/XMLDTDHandler.html Callback method indicating the start of the DTD for the XML document. Provides the locator and augmentations. ```java void startDTD(XMLLocator locator, Augmentations augmentations) ``` -------------------------------- ### createStartElement with Prefix, NamespaceURI, LocalName, Attributes, and Namespaces Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event with all possible parameters: prefix, namespace URI, local name, attributes, and namespaces. This method is specified by the XMLEventFactory interface. ```java public javax.xml.stream.events.StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName, java.util.Iterator attributes, java.util.Iterator namespaces) ``` -------------------------------- ### StartDocumentImpl Constructor Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/events/StartDocumentImpl.html Constructor for the StartDocumentImpl class. It initializes the object with character encoding, standalone status, version, and location information. ```java public StartDocumentImpl(java.lang.String charEncoding, boolean encodingSet, boolean isStandalone, boolean standaloneSet, java.lang.String version, javax.xml.stream.Location location) ``` -------------------------------- ### Start Entity Notification Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/XMLDTDScannerImpl.html Notifies the handler of the start of an entity. Handles DTDs, parameter entities, and general entities. ```java public void startEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier identifier, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### startElement Method Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/XMLSchemaValidator.ValueStoreCache.html Handles the start of an element, potentially related to identity constraint processing. ```APIDOC ## startElement() ### Description Handles the start of an element. ### Method `public void startElement()` ``` -------------------------------- ### asStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/events/EndDocumentImpl.html Returns this event as a StartElement. This method is specified by the XMLEvent interface. ```APIDOC ## asStartElement ### Description Returns this event as a StartElement. This method is specified by the XMLEvent interface. ### Method public final javax.xml.stream.events.StartElement asStartElement() ### See Also `XMLEvent.asStartElement()` ``` -------------------------------- ### Start External Subset Event Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/AbstractXMLDocumentParser.html Notifies the handler of the start of the DTD external subset. Requires resource identifier and augmentations. ```java public void startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier identifier, org.apache.xerces.xni.Augmentations augmentations) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### createStartElement with Prefix, NamespaceURI, and LocalName Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/XMLEventFactoryImpl.html Creates a StartElement event using prefix, namespace URI, and local name. This is a common way to define a start element. ```java public javax.xml.stream.events.StartElement createStartElement(java.lang.String prefix, java.lang.String namespaceUri, java.lang.String localName) ``` -------------------------------- ### Check if Start Document - AttributeImpl Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/events/AttributeImpl.html Checks if the current XML event is the start of the document. This method is specified by the XMLEvent interface. ```java public final boolean isStartDocument() ``` -------------------------------- ### Check if Start Element - AttributeImpl Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/stax/events/AttributeImpl.html Checks if the current XML event is a start element. This method is specified by the XMLEvent interface. ```java public final boolean isStartElement() ``` -------------------------------- ### startElement Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/XMLNamespaceBinder.html Binds namespaces for the start of an element. ```APIDOC ## startElement ### Description Binds the namespaces for the start of an element. ### Method void ### Signature startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) ### Parameters * **element** (org.apache.xerces.xni.QName) - The qualified name of the element. * **attributes** (org.apache.xerces.xni.XMLAttributes) - The attributes of the element. * **augs** (org.apache.xerces.xni.Augmentations) - Augmentations associated with the element. ``` -------------------------------- ### XSDFACM startContentModel Method Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/models/XSDFACM.html Called upon entering the first element of a content model. Returns the initial state of the content model. ```java public int[] startContentModel() ``` -------------------------------- ### Start Content Model Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.html Callback for the start of an element's content model in the DTD. This method is part of the XMLDTDContentModelHandler interface. ```java public void startContentModel(java.lang.String elementName, org.apache.xerces.xni.Augmentations augmentations) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### Start Conditional Section Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/opti/DefaultXMLDocumentHandler.html Callback for the start of a conditional section (INCLUDE or IGNORE) in the DTD. This method is part of the XMLDTDHandler interface. ```java public void startConditional(short type, org.apache.xerces.xni.Augmentations augmentations) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### XSDDescription Constructor Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/XSDDescription.html Initializes a new instance of the XSDDescription class. ```APIDOC ## XSDDescription() ### Description Initializes a new instance of the XSDDescription class. ### Constructor `XSDDescription()` ``` -------------------------------- ### startValueScope Method Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/XMLSchemaValidator.ValueStoreBase.html Starts scope for value store. ```java public void startValueScope() ``` -------------------------------- ### Start CDATA Section Handler - XMLSchemaValidator Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/xs/XMLSchemaValidator.html Handles the beginning of a CDATA section. This method is called when a CDATA section starts. ```java public void startCDATA(org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### Set Start Offset Method Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/XMLEntityManager.RewindableInputStream.html Sets the starting offset for the stream. This method is part of the RewindableInputStream's internal management. ```java public void setStartOffset(int offset) ``` -------------------------------- ### FullDVFactory Constructor Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dv/xs/FullDVFactory.html Initializes a new instance of the FullDVFactory class. ```APIDOC ## FullDVFactory() ### Description Initializes a new instance of the FullDVFactory class. ### Constructor `FullDVFactory()` ``` -------------------------------- ### startPrefixMapping Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/XMLReaderAdapter.html Adapts a SAX2 start prefix mapping event. ```APIDOC ## startPrefixMapping ### Description Adapt a SAX2 start prefix mapping event. ### Method public void startPrefixMapping(String prefix, String uri) ### Parameters * `prefix` (String) - The prefix being mapped. * `uri` (String) - The Namespace URI being mapped to. ``` -------------------------------- ### Start Element Handler - startElement Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/dom/DOMNormalizer.html Notifies of the start of an element, providing the element's qualified name, attributes, and augmentations. ```java public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### handleStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/XMLNamespaceBinder.html Handles the start of an element, including attribute and namespace processing. ```APIDOC ## handleStartElement ### Description Handles the start of an element, including attribute and namespace processing. ### Method protected void ### Signature handleStartElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs, boolean isEmpty) ### Parameters * **element** (org.apache.xerces.xni.QName) - The qualified name of the element. * **attributes** (org.apache.xerces.xni.XMLAttributes) - The attributes of the element. * **augs** (org.apache.xerces.xni.Augmentations) - Augmentations associated with the element. * **isEmpty** (boolean) - Flag indicating if the element is empty. ``` -------------------------------- ### Set Start Attribute - HTMLOListElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/html/HTMLOListElement.html Sets the starting sequence number for the ordered list. This attribute is deprecated in HTML 4.0. ```java voidsetStart(intstart) ``` -------------------------------- ### Start General Entity Handler Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/xinclude/XIncludeHandler.html Notifies the start of a general entity. This method is not called for entity references within attribute values. ```java public void startGeneralEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier resId, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### writeStartElement (prefix, localName, namespaceURI) Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/XMLStreamWriter.html Writes the start of an element with the given prefix, local name, and namespace URI. ```APIDOC ## writeStartElement (prefix, localName, namespaceURI) ### Description Writes the start of an element with the given prefix, local name, and namespace URI. ### Method void ### Parameters * **prefix** (java.lang.String) - The prefix of the element. * **localName** (java.lang.String) - The local name of the element. * **namespaceURI** (java.lang.String) - The namespace URI of the element. ### Throws * XMLStreamException ``` -------------------------------- ### Start of External Subset Notification Source: https://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/XMLDTDHandler.html Callback method signaling the start of the DTD external subset. Provides the resource identifier and augmentations. ```java void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations) ``` -------------------------------- ### startNamespaceMapping Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/AbstractSAXParser.html Callback method to signal the start of namespace mappings. This is used to send `startPrefixMapping` events. ```APIDOC ## startNamespaceMapping ### Description Sends startPrefixMapping events. ### Method `protected void startNamespaceMapping()` ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Request Example ```java // This method is typically called by the parser, not directly by the user. // Example of how it might be invoked internally: parser.startNamespaceMapping(); ``` ### Response #### Success Response (void) This method does not return a value. #### Response Example N/A ``` -------------------------------- ### Start of DTD External Subset Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/XMLDTDProcessor.html Called when the start of the DTD external subset is encountered. It receives additional information and a resource identifier. ```Java public void startExternalSubset(org.apache.xerces.xni.Augmentations augs, org.apache.xerces.xni.XMLResourceIdentifier identifier) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### startDocument() Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/ParserAdapter.html Adapts a SAX1 start document event. This is an adapter implementation method and should not be called directly by the user. ```APIDOC ## startDocument() ### Description Adapts a SAX1 start document event. This is an adapter implementation method and should not be called directly by the user. ### Method void ### Throws - `SAXException` - The client may raise a processing exception. ``` -------------------------------- ### XPointerParserConfiguration Constructors Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/XPointerParserConfiguration.html Provides details on how to instantiate the XPointerParserConfiguration class. ```APIDOC ## XPointerParserConfiguration Constructors ### Description Constructors for creating an instance of XPointerParserConfiguration. ### Constructors - **XPointerParserConfiguration()**: Default constructor. - **XPointerParserConfiguration(SymbolTable symbolTable)**: Constructs a parser configuration using the specified symbol table. - **XPointerParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)**: Constructs a parser configuration using the specified symbol table and grammar pool. - **XPointerParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)**: Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings. ``` -------------------------------- ### Get Error Listener Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/transform/TransformerFactory.html Gets the error event handler for the TransformerFactory. This listener is used for handling errors during the processing of transformation instructions. ```java abstract ErrorListener getErrorListener() Get the error event handler for the TransformerFactory. ``` -------------------------------- ### Get Default XMLOutputFactory Instance Source: https://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/stream/XMLOutputFactory.html Obtain a default instance of XMLOutputFactory. This is the primary way to get a factory for creating XML writers. ```java public static XMLOutputFactory newInstance() throws FactoryConfigurationError ``` -------------------------------- ### Initialize Content Model Stack Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/impl/dtd/DTDGrammar.html Initializes the content model stack. This is a necessary setup step before manipulating content models. ```java protected void initializeContentModelStack() ``` -------------------------------- ### Start of Conditional Section Notification Source: https://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/XMLDTDHandler.html Callback method signaling the start of a conditional section. The type indicates whether it is an INCLUDE or IGNORE section. ```java void startConditional(short type, Augmentations augmentations) ``` -------------------------------- ### createStartElement Source: https://xerces.apache.org/xerces2-j/javadocs/api/index-all.html Creates a start element event. ```APIDOC ## createStartElement ### Description Creates a start element event. ### Method createStartElement(QName, Iterator, Iterator) ### Class javax.xml.stream.XMLEventFactory ``` ```APIDOC ## createStartElement ### Description Creates a start element event. ### Method createStartElement(String, String, String) ### Class javax.xml.stream.XMLEventFactory ``` ```APIDOC ## createStartElement ### Description Creates a start element event. ### Method createStartElement(String, String, String, Iterator, Iterator) ### Class javax.xml.stream.XMLEventFactory ``` ```APIDOC ## createStartElement ### Description Creates a start element event. ### Method createStartElement(String, String, String, Iterator, Iterator, NamespaceContext) ### Class javax.xml.stream.XMLEventFactory ``` -------------------------------- ### Start of Attribute List Notification Source: https://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/XMLDTDHandler.html Callback method indicating the start of an attribute list for a given element. Receives the element name and augmentations. ```java void startAttlist(java.lang.String elementName, Augmentations augmentations) ``` -------------------------------- ### startGeneralEntity Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/dom/DOMNormalizer.html Handles the event of starting a general entity. ```APIDOC ## startGeneralEntity ### Description Callback method for the start of a general entity. ### Method `void` ### Parameters - `name` (java.lang.String) - The name of the entity. - `identifier` (org.apache.xerces.xni.XMLResourceIdentifier) - The identifier of the entity resource. - `encoding` (java.lang.String) - The encoding of the entity. - `augs` (org.apache.xerces.xni.Augmentations) - Augmentations associated with the event. ``` -------------------------------- ### Namespace Processing Example Source: https://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/helpers/NamespaceSupport.html Demonstrates how to use NamespaceSupport to declare prefixes, process qualified names, and retrieve namespace information within a session. Remember to reset the object between sessions. ```java String parts[] = new String[3]; NamespaceSupport support = new NamespaceSupport(); support.pushContext(); support.declarePrefix("", "http://www.w3.org/1999/xhtml"); support.declarePrefix("dc", "http://www.purl.org/dc#"); parts = support.processName("p", parts, false); System.out.println("Namespace URI: " + parts[0]); System.out.println("Local name: " + parts[1]); System.out.println("Raw name: " + parts[2]); parts = support.processName("dc:title", parts, false); System.out.println("Namespace URI: " + parts[0]); System.out.println("Local name: " + parts[1]); System.out.println("Raw name: " + parts[2]); support.popContext(); ``` -------------------------------- ### Handle Start of Conditional Section - Java Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/AbstractXMLDocumentParser.html Callback for the start of a conditional section (e.g., INCLUDE or IGNORE). Receives the type of the section and any augmentations. ```java public void startConditional(short type, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ``` -------------------------------- ### Start DTD Event Source: https://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/AbstractXMLDocumentParser.html Notifies the handler of the start of a DTD. It is recommended to supply a locator for reporting the DTD's base system identifier. ```java public void startDTD(org.apache.xerces.xni.XMLLocator locator, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException ```