Table of contentsAppendices |
1.3 Document Editing InterfacesDocument Editing InterfacesThis section contains "Document Editing" methods as described in the
This interface extends the An attribute specifying whether the validity of the document
is continuously enforced. When the attribute is set to
NOT_SUPPORTED_ERR: Raised if the implementation
does not support setting this attribute to
NO_SCHEMA_AVAILABLE_ERR: Raised if this
attribute is set to VALIDATION_ERR: Raised if an operation makes
this document not compliant with the
This allows the setting of the error handler, as described in the
[DOMCore] Returns list of all element information item names of global declaration, belonging to the specified namespace.
List of all element information item names belonging to the
specified namespace or Validates the document against the schema, e.g., a DTD or an
W3C XML schema or another. Any attempt to modify any part of the
document while validating results in implementation-dependent
behavior. In addition, the validation operation itself cannot
modify the document, e.g., for default attributes.
This method makes use of the error handler, as
described in the [DOMCore]
A validation state constant. This interface is similar to the [DOMCore] An integer indicating the validation type.
Other specifications can define stricter
validation types/constants by extending
the Check if the node is well-formed. Check if the node is namespace well-formed. Check if the node's immediate children are those
expected by the content model. This node's trailing
required children could be missing.
It includes
Check if the node's entire subtree are those expected
by the content model. It includes An integer indicating the validation state, or whether the operation can or cannot be done. True if the node is valid with regards to the operation, or if the operation can be done. False if the node is invalid with regards to the operation, or if the operation cannot be done. The validity of the node is unknown.
The default value specified in an attribute or an element declaration or
A Determines whether the
Reference A validation state constant.
Determines whether the
A validation state constant.
Determines whether the New
A validation state constant.
Determines whether the
A validation state constant. Determines if the node is valid relative to the
validation type
specified in Flag to indicate the validation type checking to be done. A validation state constant. This interface extends the Level-3-VAL-Wildcards
This interface also has attributes that are a
To expose wildcards, the
An integer indicating the content type of an element. The content model does not allow any
content.
If the schema is a W3C XML schema, this corresponds
to the The content model contains unordered child information
item(s), i.e.,
element, processing instruction, unexpanded entity reference,
character, and comment information items as defined in the
XML Information Set.
If the schema is a DTD, this corresponds to the
The content model contains a sequence of ordered
element information items
optionally interspersed with character data. If the schema
is a W3C XML schema, this corresponds to the The content model contains a sequence of
element information items
optionally separated by whitespace. If the schema is a DTD, this
is the The content model contains
character information items. If the schema is a W3C XML schema,
then the element has a content type of A A A A A A A The content type of an element as defined above. Determines if the text content of this node and its descendants can be set to the string passed in. Possible text content string. A validation state constant. Determines if the value for specified attribute can be set. Name of attribute. Value to be assigned to the attribute. A validation state constant. Determines if an attribute node can be added.
A validation state constant. Determines if the attribute with given namespace and qualified name can be created if not already present in the attribute list of the element. If the attribute with the same qualified name and namespaceURI is already present in the element's attribute list, it tests whether the value of the attribute and its prefix can be set to the new value.
Qualified name of attribute. Value to be assigned to the attribute. A validation state constant. Verifies if an attribute by the given name can be removed. Name of attribute. A validation state constant. Verifies if an attribute by the given local name and namespace can be removed. The namespace URI of the attribute to remove. Local name of the attribute to be removed. A validation state constant. Determines if an attribute node can be removed. The A validation state constant. Determines if Name of element. A validation state constant. Determines if
Name of element. A validation state constant. This interface extends the Determines if character data is only whitespace. A validation state constant. Determines if character data can be set. Argument to be set. A validation state constant. Determines if character data can be appended. Data to be appended. A validation state constant. Determines if character data can be replaced. Offset. Replacement. Argument to be set. A validation state constant. INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. Determines if character data can be inserted. Offset. Argument to be set. A validation state constant. INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data. Determines if character data can be deleted. Offset. Number of 16-bit units to delete. A validation state constant. INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative. |