Interface AuthorDocument

  • All Superinterfaces:
    AuthorNode, AuthorParentNode

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface AuthorDocument
    extends AuthorParentNode
    The Document interface represents the entire XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.
    • Method Detail

      • getRootElement

        AuthorElement getRootElement()
        Returns the child node that is the root element of the document.
        Returns:
        The root element of the document. Might be null for documents with no children elements.
      • getSystemID

        java.lang.String getSystemID()
        Returns the systemID of the document.
        Returns:
        The systemID of the document, or null if not provided.
      • getLength

        int getLength()
        Get the length of the document.
        Returns:
        the length of the document in characters, including the sentinel characters that delimit each element.
        Since:
        13.2
      • getElementById

        AuthorElementBaseInterface getElementById​(java.lang.String id)
        Gets the element that has the ID attribute with the specified value.
        Parameters:
        id - The ID of the searched element. Should not contain the # symbol.
        Returns:
        null if no elements with the specified ID exists.