# All Classes and Interfaces

Class
Description
Attribute
This class represents an attribute such as `type="empty"` or `xlink:href="http://www.example.com"`.
Attribute.Type
Uses the type-safe enumeration design pattern to represent attribute types, as specified by XML DTDs.
BadEncodingAttributeException
Indicates that the `encoding` attribute is not an EncName as defined in the XML specification, section 4.3.3, rule 81.
BadHrefAttributeException
Indicates that an `href` attribute contains an illegal value, such as a URI with a fragment identifier, or a syntactically incorrect IRI.
BadHTTPHeaderException
Indicates that an `accept` or `accept-language` attribute contains C0 control characters (including linefeed, tab, or carriage return) or non-ASCII characters.
BadParseAttributeException
Indicates that the `parse` attribute has some value other than `xml` or `text`.
Builder
This class is responsible for creating XOM `Document` objects from a URL, file, string, or input stream by reading an XML document.
CanonicalizationException
Indicates problems with canonicalization.
Canonicalizer
Writes XML in the format specified by Canonical XML Version 1.0 or Exclusive XML Canonicalization Version 1.0.
Comment
This class represents an XML comment such as `<-- This is a comment-->`.
CycleException
Indicates an attempt to insert an ancestor element as one of its own descendants.
DocType
Represents an XML document type declaration such as `<!DOCTYPE book SYSTEM "docbookx.dtd">`.
Document
The `Document` class represents a complete XML document including its root element, prolog, and epilog.
DOMConverter
Converts XOM `Document` objects to and from DOM `Document` objects.
Element
This class represents an XML element.
Elements
A read-only list of elements for traversal purposes.
IllegalAddException
Indicates an attempt to add a node in a wrong place; for instance adding a `Text` node to a `Document` object.
IllegalCharacterDataException
Indicates an attempt to create text content that is not allowed in XML 1.0.
IllegalDataException
Indicates an attempt to set some value to malformed content; for instance by adding a string containing a null or a vertical tab to a text node, or using white space in an element name.
IllegalNameException
Indicates an attempt to assign a name that is not a legal XML name.
IllegalTargetException
Indicates an attempt to assign a processing instruction target that is not a legal XML 1.0 processing instruction target.
InclusionLoopException
Indicates that an included document attempts to include itself or one of its ancestor documents, directly or indirectly.
MalformedURIException
Indicates that a string intended for use as a URI or URI reference (typically a namespace name or a base URI) is not syntactically correct according to RFC 3986.
MisplacedFallbackException
Indicates that an `xinclude:fallback` element was found outside of an `xinclude:include` element.
MultipleParentException
Indicates an attempt to add a node that already has a parent to the same or a different parent.
Namespace
Represents a namespace in scope.
NamespaceConflictException
Signals an attempt to set a namespace in a way that conflicts with an existing namespace; for instance, adding an attribute to an element that has the same prefix as the element but maps it to a different URI.
Node
The generic superclass for all the contents of an XML document.
NodeFactory
Builders use a `NodeFactory` object to construct each `Node` object (`Element`, `Text`, `Attribute`, etc.) they add to the tree.
Nodes
Implements a list of nodes for traversal purposes.
NoIncludeLocationException
Indicates that an `xinclude:include` element has neither an `href` attribute nor an `xpointer` attribute.
NoSuchAttributeException
Indicates that an attribute with a certain name and/or namespace does not exist.
NoSuchChildException
Indicates that a child with a certain name and/or namespace does not exist.
ParentNode
The generic superclass for nodes that have children.
ParsingException
The generic superclass for all the checked exceptions thrown in XOM.
ProcessingInstruction
This class represents an XML processing instruction.
SAXConverter
Feeds a XOM `Document` into a SAX2 `ContentHandler`.
Serializer
Outputs a `Document` object in a specific encoding using various options for controlling white space, normalization, indenting, line breaking, and base URIs.
Text
This class represents a run of text.
UnavailableCharacterException
Thrown when serializing documents that contain characters not available in the current encoding, and which cannot be escaped (for instance, because they're in an element name or processing instruction data).
ValidityException
Signals a validity error in a document being parsed.
WellformednessException
Indicates an attempt to do or create something that could not possibly be serialized in a namespace well-formed XML 1.0 document.
XIncludeException
The generic superclass for all checked exceptions that may be thrown as a result of a violation of XInclude's rules.
XIncluder
Implements XInclude resolution as specified in XML Inclusions (XInclude) Version 1.0.
XMLException
The generic superclass for most runtime exceptions thrown in `nu.xom`.
XOMTestCase
Provides utility methods to compare nodes for deep equality in an infoset sense.
XPathContext
Provides namespace prefix bindings for use in an XPath expression.
XPathException
Indicates problems with XPath syntax or evaluation.
XPathTypeException
Indicates that an XPath query returned a non-node-set.
XSLException
Thrown when an XSL stylesheet fails to compile or an XSL transform fails.
XSLTransform
Serves as an interface to a TrAX aware XSLT processor such as Xalan or Saxon.