Packagedom.validation
Interfacepublic interface DocumentEditVAL extends NodeEditVAL

Introduced in: DOM 3 Validation 

An object implementing this interface must also implement the Document interface.

See also

W3C - DocumentEditVAL


Public Properties
 PropertyDefined By
  DOM 3 Validation continuousValidityChecking : Boolean
An attribute specifying whether the validity of the document is continuously enforced.
DocumentEditVAL
 InheritedDOM 3 Validation defaultValue : DOMString
[read-only] The default value specified in an attribute or an element declaration or null if unspecified.
NodeEditVAL
  DOM 3 Validation domConfig : DOMConfiguration
[read-only] This allows the setting of the error handler, as described in the [DOM Level 3 Core] DOMConfiguration interface.
DocumentEditVAL
 InheritedDOM 3 Validation enumeratedValues : DOMStringList
[read-only] A DOMStringList, as described in DOM Level 3 Core, of distinct values for an attribute or an element declaration or null if unspecified.
NodeEditVAL
Public Methods
 MethodDefined By
 Inherited
DOM 3 Validation canAppendChild(newChild:Node):Number
Determines whether the Node.appendChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
 Inherited
DOM 3 Validation canInsertBefore(newChild:Node, refChild:Node):Number
Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
 Inherited
DOM 3 Validation canRemoveChild(oldChild:Node):Number
Determines whether the Node.removeChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
 Inherited
DOM 3 Validation canReplaceChild(newChild:Node, oldChild:Node):Number
Determines whether the Node.replaceChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation getDefinedElements(namespaceURI:DOMString):NameList
Returns list of all element information item names of global declaration, belonging to the specified namespace.
DocumentEditVAL
 Inherited
DOM 3 Validation nodeValidity(valType:Number):Number
Determines if the node is valid relative to the validation type specified in valType.
NodeEditVAL
  
DOM 3 Validation validateDocument():Number
Validates the document against the schema, e.g., a DTD or an W3C XML schema or another.
DocumentEditVAL
Property Detail
DOM 3 Validation continuousValidityCheckingproperty
continuousValidityChecking:Boolean

Introduced in: DOM 3 Validation 

An attribute specifying whether the validity of the document is continuously enforced. When the attribute is set to true, the implementation may raise certain exceptions, depending on the situation (see the following).

The default value is false.


Implementation
    public function get continuousValidityChecking():Boolean
    public function set continuousValidityChecking(value:Boolean):void

Throws
DOMException — NOT_SUPPORTED_ERR: Raised if the implementation does not support setting this attribute to true.
 
ExceptionVAL — NO_SCHEMA_AVAILABLE_ERR: Raised if this attribute is set to true and a schema is unavailable.
 
DOMException — VALIDATION_ERR: Raised if an operation makes this document not compliant with the VAL_INCOMPLETE validity type or the document is invalid, and this attribute is set to true.

See also

DOM 3 Validation domConfigproperty 
domConfig:DOMConfiguration  [read-only]

Introduced in: DOM 3 Validation 

This allows the setting of the error handler, as described in the [DOM Level 3 Core] DOMConfiguration interface. An object implementing this DocumentEditVAL interface and the DOM Level 3 Core Document interface, which also has a domConfig attribute, needs to only implement this attribute once.


Implementation
    public function get domConfig():DOMConfiguration

See also

Method Detail
DOM 3 Validation getDefinedElements()method
public function getDefinedElements(namespaceURI:DOMString):NameList

Introduced in: DOM 3 Validation 

Returns list of all element information item names of global declaration, belonging to the specified namespace.

Parameters

namespaceURI:DOMString — namespaceURI of namespace. For DTDs, this is null.

Returns
NameList — List of all element information item names belonging to the specified namespace or null if no schema is available.

See also

DOM 3 Validation validateDocument()method 
public function validateDocument():Number

Introduced in: DOM 3 Validation 

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 DOM Level 3 Core DOMConfiguration interface, with all errors being SEVERITY_ERROR as defined in the DOMError interface.

Returns
Number — A validation state constant.

See also