|
| Interface | Description |
|---|
 | IAttr | The CopyC# interface represents an attribute in an
CopyC# object. Typically the allowable values for the
attribute are defined in a document type definition.
CopyC# objects inherit the CopyC# interface, but
since they are not actually child nodes of the element they describe, the
DOM does not consider them part of the document tree. Thus, the
CopyC# attributes CopyC# ,
CopyC# , and CopyC# have a
CopyC# value for CopyC# objects. The DOM takes the
view that attributes are properties of elements rather than having a
separate identity from the elements they are associated with; this should
make it more efficient to implement such features as default attributes
associated with all elements of a given type. Furthermore,
CopyC# nodes may not be immediate children of a
CopyC# . However, they can be associated with
CopyC# nodes contained within a
CopyC# . In short, users and implementors of the
DOM need to be aware that CopyC# nodes have some things in
common with other objects inheriting the CopyC# interface, but
they also are quite distinct.
The attribute's effective value is determined as follows: if this
attribute has been explicitly assigned any value, that value is the
attribute's effective value; otherwise, if there is a declaration for
this attribute, and that declaration includes a default value, then that
default value is the attribute's effective value; otherwise, the
attribute does not exist on this element in the structure model until it
has been explicitly added. Note that the CopyC# attribute
on the CopyC# instance can also be used to retrieve the string
version of the attribute's value(s). In XML, where the value of an attribute can contain entity references,
the child nodes of the CopyC# node may be either
CopyC# or CopyC# nodes (when these are
in use; see the description of CopyC# for
discussion). Because the DOM Core is not aware of attribute types, it
treats all attribute values as simple strings, even if the DTD or schema
declares them as having tokenized types. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | ICdataSection | CDATA sections are used to escape blocks of text containing characters that
would otherwise be regarded as markup. The only delimiter that is
recognized in a CDATA section is the "]]>" string that ends the CDATA
section. CDATA sections cannot be nested. Their primary purpose is for
including material such as XML fragments, without needing to escape all
the delimiters.
The CopyC# attribute of the CopyC# node holds
the text that is contained by the CDATA section. Note that this may
contain characters that need to be escaped outside of CDATA sections and
that, depending on the character encoding ("charset") chosen for
serialization, it may be impossible to write out some characters as part
of a CDATA section. The CopyC# interface inherits from the
CopyC# interface through the CopyC#
interface. Adjacent CopyC# nodes are not merged by use
of the CopyC# method of the CopyC# interface.
Because no markup is recognized within a CopyC# ,
character numeric references cannot be used as an escape mechanism when
serializing. Therefore, action needs to be taken when serializing a
CopyC# with a character encoding where some of the
contained characters cannot be represented. Failure to do so would not
produce well-formed XML.One potential solution in the serialization
process is to end the CDATA section before the character, output the
character using a character reference or entity reference, and open a new
CDATA section for any further characters in the text node. Note, however,
that some code conversion libraries at the time of writing do not return
an error or exception when a character is missing from the encoding,
making the task of ensuring that data is not corrupted on serialization
more difficult. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | ICharacterData | The CopyC# interface extends Node with a set of
attributes and methods for accessing character data in the DOM. For
clarity this set is defined here rather than on each object that uses
these attributes and methods. No DOM objects correspond directly to
CopyC# , though CopyC# and others do
inherit the interface from it. All CopyC# in this interface
start from CopyC# .
As explained in the CopyC# interface, text strings in
the DOM are represented in UTF-16, i.e. as a sequence of 16-bit units. In
the following, the term 16-bit units is used whenever necessary to
indicate that indexing on CharacterData is done in 16-bit units. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IComment | This interface inherits from CopyC# and represents the
content of a comment, i.e., all the characters between the starting '
CopyC# ' and ending ' CopyC# '. Note that this is
the definition of a comment in XML, and, in practice, HTML, although some
HTML tools may implement the full SGML comment structure.
See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IDocument | The CopyC# interface represents the entire HTML or XML
document. Conceptually, it is the root of the document tree, and provides
the primary access to the document's data.
Since elements, text nodes, comments, processing instructions, etc.
cannot exist outside the context of a CopyC# , the
CopyC# interface also contains the factory methods needed
to create these objects. The CopyC# objects created have a
CopyC# attribute which associates them with the
CopyC# within whose context they were created. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IDocumentFragment | CopyC# is a "lightweight" or "minimal"
CopyC# object. It is very common to want to be able to
extract a portion of a document's tree or to create a new fragment of a
document. Imagine implementing a user command like cut or rearranging a
document by moving fragments around. It is desirable to have an object
which can hold such fragments and it is quite natural to use a Node for
this purpose. While it is true that a CopyC# object could
fulfill this role, a CopyC# object can potentially be a
heavyweight object, depending on the underlying implementation. What is
really needed for this is a very lightweight object.
CopyC# is such an object.
Furthermore, various operations -- such as inserting nodes as children
of another CopyC# -- may take CopyC#
objects as arguments; this results in all the child nodes of the
CopyC# being moved to the child list of this node. The children of a CopyC# node are zero or more
nodes representing the tops of any sub-trees defining the structure of
the document. CopyC# nodes do not need to be
well-formed XML documents (although they do need to follow the rules
imposed upon well-formed XML parsed entities, which can have multiple top
nodes). For example, a CopyC# might have only one
child and that child node could be a CopyC# node. Such a
structure model represents neither an HTML document nor a well-formed XML
document. When a CopyC# is inserted into a
CopyC# (or indeed any other CopyC# that may
take children) the children of the CopyC# and not
the CopyC# itself are inserted into the
CopyC# . This makes the CopyC# very
useful when the user wishes to create nodes that are siblings; the
CopyC# acts as the parent of these nodes so that
the user can use the standard methods from the CopyC#
interface, such as CopyC# and CopyC# . See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IDocumentType | Each CopyC# has a CopyC# attribute whose value
is either CopyC# or a CopyC# object. The
CopyC# interface in the DOM Core provides an interface
to the list of entities that are defined for the document, and little
else because the effect of namespaces and the various XML schema efforts
on DTD representation are not clearly understood as of this writing.
The DOM Level 2 doesn't support editing CopyC# nodes. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IDomImplementation | |
 | IElement | The CopyC# interface represents an element in an HTML or XML
document. Elements may have attributes associated with them; since the
CopyC# interface inherits from CopyC# , the
generic CopyC# interface attribute CopyC# may
be used to retrieve the set of all attributes for an element. There are
methods on the CopyC# interface to retrieve either an
CopyC# object by name or an attribute value by name. In XML,
where an attribute value may contain entity references, an
CopyC# object should be retrieved to examine the possibly
fairly complex sub-tree representing the attribute value. On the other
hand, in HTML, where all attributes have simple string values, methods to
directly access an attribute value can safely be used as a convenience.In
DOM Level 2, the method CopyC# is inherited from the
CopyC# interface where it was moved.
See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IEntityReference | CopyC# objects may be inserted into the structure
model when an entity reference is in the source document, or when the
user wishes to insert an entity reference. Note that character references
and references to predefined entities are considered to be expanded by
the HTML or XML processor so that characters are represented by their
Unicode equivalent rather than by an entity reference. Moreover, the XML
processor may completely expand references to entities while building the
structure model, instead of providing CopyC#
objects. If it does provide such objects, then for a given
CopyC# node, it may be that there is no
CopyC# node representing the referenced entity. If such an
CopyC# exists, then the subtree of the
CopyC# node is in general a copy of the
CopyC# node subtree. However, this may not be true when an
entity contains an unbound namespace prefix. In such a case, because the
namespace prefix resolution depends on where the entity reference is, the
descendants of the CopyC# node may be bound to
different namespace URIs.
As for CopyC# nodes, CopyC# nodes and
all their descendants are readonly. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | INamedNodeMap | Objects implementing the CopyC# interface are used to
represent collections of nodes that can be accessed by name. Note that
CopyC# does not inherit from CopyC# ;
CopyC# are not maintained in any particular order.
Objects contained in an object implementing CopyC# may
also be accessed by an ordinal index, but this is simply to allow
convenient enumeration of the contents of a CopyC# ,
and does not imply that the DOM specifies an order to these Nodes.
CopyC# objects in the DOM are live.
See also the Document Object Model (DOM) Level 2 Core Specification. |
 | INode | The CopyC# interface is the primary datatype for the entire
Document Object Model. It represents a single node in the document tree.
While all objects implementing the CopyC# interface expose
methods for dealing with children, not all objects implementing the
CopyC# interface may have children. For example,
CopyC# nodes may not have children, and adding children to
such nodes results in a CopyC# being raised.
The attributes CopyC# , CopyC# and
CopyC# are included as a mechanism to get at node
information without casting down to the specific derived interface. In
cases where there is no obvious mapping of these attributes for a
specific CopyC# (e.g., CopyC# for an
CopyC# or CopyC# for a CopyC#
), this returns CopyC# . Note that the specialized interfaces
may contain additional and more convenient mechanisms to get and set the
relevant information. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | INodeList | The CopyC# interface provides the abstraction of an ordered
collection of nodes, without defining or constraining how this collection
is implemented. CopyC# objects in the DOM are live.
The items in the CopyC# are accessible via an integral
index, starting from 0. See also the Document Object Model (DOM) Level 2 Core Specification. |
 | IProcessingInstruction | |
 | IText | The CopyC# interface inherits from CopyC#
and represents the textual content (termed character data in XML) of an
CopyC# or CopyC# . If there is no markup inside
an element's content, the text is contained in a single object
implementing the CopyC# interface that is the only child of
the element. If there is markup, it is parsed into the information items
(elements, comments, etc.) and CopyC# nodes that form the list
of children of the element.
When a document is first made available via the DOM, there is only one
CopyC# node for each block of text. Users may create adjacent
CopyC# nodes that represent the contents of a given element
without any intervening markup, but should be aware that there is no way
to represent the separations between these nodes in XML or HTML, so they
will not (in general) persist between DOM editing sessions. The
CopyC# method on CopyC# merges any such
adjacent CopyC# objects into a single node for each block of
text. See also the Document Object Model (DOM) Level 2 Core Specification. |