Packagedom.loadsave
Classpublic class LSParser
InheritanceLSParser Inheritance Object

Introduced in: DOM 3 Load and Save 

An interface to an object that is able to build, or augment, a DOM tree from various input sources.

See also

W3C - LSParser


Public Properties
 PropertyDefined By
  DOM 3 Load and Save async : Boolean
[read-only]
LSParser
  DOM 3 Load and Save busy : Boolean
[read-only]
LSParser
  DOM 3 Load and Save domConfig : DOMConfiguration
[read-only]
LSParser
  DOM 3 Load and Save filter : LSParserFilter
[read-only]
LSParser
Public Methods
 MethodDefined By
  
DOM 3 Load and Save abort():void
LSParser
  
DOM 3 Load and Save parse():Document
LSParser
  
DOM 3 Load and Save parseURI(uri:DOMString):Document
LSParser
  
DOM 3 Load and Save parseWithContext(input:LSInputStream, contextArg:Node, action:Number):Node
LSParser
Public Constants
 ConstantDefined By
  DOM 3 Load and Save ACTION_APPEND_AS_CHILDREN : Number = 1
[static] Append the result of the parse operation as children of the context node.
LSParser
  DOM 3 Load and Save ACTION_INSERT_AFTER : Number = 4
[static] Insert the result of the parse operation as the immediately following sibling of the context node.
LSParser
  DOM 3 Load and Save ACTION_INSERT_BEFORE : Number = 3
[static] Insert the result of the parse operation as the immediately preceding sibling of the context node.
LSParser
  DOM 3 Load and Save ACTION_REPLACE : Number = 5
[static] Replace the context node with the result of the parse operation.
LSParser
  DOM 3 Load and Save ACTION_REPLACE_CHILDREN : Number = 2
[static] Replace all the children of the context node with the result of the parse operation.
LSParser
Property Detail
DOM 3 Load and Save asyncproperty
async:Boolean  [read-only]

Introduced in: DOM 3 Load and Save 


Implementation
    public function get async():Boolean

See also

DOM 3 Load and Save busyproperty 
busy:Boolean  [read-only]

Introduced in: DOM 3 Load and Save 


Implementation
    public function get busy():Boolean

See also

DOM 3 Load and Save domConfigproperty 
domConfig:DOMConfiguration  [read-only]

Introduced in: DOM 3 Load and Save 


Implementation
    public function get domConfig():DOMConfiguration

See also

DOM 3 Load and Save filterproperty 
filter:LSParserFilter  [read-only]

Introduced in: DOM 3 Load and Save 


Implementation
    public function get filter():LSParserFilter

See also

Method Detail
DOM 3 Load and Save abort()method
public function abort():void

Introduced in: DOM 3 Load and Save 

See also

DOM 3 Load and Save parse()method 
public function parse():Document

Introduced in: DOM 3 Load and Save 

Returns
Document

See also

DOM 3 Load and Save parseURI()method 
public function parseURI(uri:DOMString):Document

Introduced in: DOM 3 Load and Save 

Parameters

uri:DOMString

Returns
Document

See also

DOM 3 Load and Save parseWithContext()method 
public function parseWithContext(input:LSInputStream, contextArg:Node, action:Number):Node

Introduced in: DOM 3 Load and Save 

Parameters

input:LSInputStream
 
contextArg:Node
 
action:Number

Returns
Node

See also

Constant Detail
DOM 3 Load and Save ACTION_APPEND_AS_CHILDRENConstant
public static const ACTION_APPEND_AS_CHILDREN:Number = 1

Introduced in: DOM 3 Load and Save 

Append the result of the parse operation as children of the context node. For this action to work, the context node must be an Element or a DocumentFragment.

See also

DOM 3 Load and Save ACTION_INSERT_AFTERConstant 
public static const ACTION_INSERT_AFTER:Number = 4

Introduced in: DOM 3 Load and Save 

Insert the result of the parse operation as the immediately following sibling of the context node. For this action to work the context node's parent must be an Element or a DocumentFragment.

See also

DOM 3 Load and Save ACTION_INSERT_BEFOREConstant 
public static const ACTION_INSERT_BEFORE:Number = 3

Introduced in: DOM 3 Load and Save 

Insert the result of the parse operation as the immediately preceding sibling of the context node. For this action to work the context node's parent must be an Element or a DocumentFragment.

See also

DOM 3 Load and Save ACTION_REPLACEConstant 
public static const ACTION_REPLACE:Number = 5

Introduced in: DOM 3 Load and Save 

Replace the context node with the result of the parse operation. For this action to work, the context node must have a parent, and the parent must be an Element or a DocumentFragment.

See also

DOM 3 Load and Save ACTION_REPLACE_CHILDRENConstant 
public static const ACTION_REPLACE_CHILDREN:Number = 2

Introduced in: DOM 3 Load and Save 

Replace all the children of the context node with the result of the parse operation. For this action to work, the context node must be an Element, a Document, or a DocumentFragment.

See also