pushNodeContext Method

 

[This feature was first implemented for MSXML 4.0.]

Pushes local context down the stack, and creates a new local context that is defined by the DOM node.

Script Syntax

var ObjNSManager.pushNodeContext(oContextNode,[fDeep as Boolean=True]);  

Parameters

oContextNode
An IXMLDOMNode object. A DOM node that specifies the context to use.

fDeep
Boolean. The default value is True. If True, pushes namespace declarations of parent nodes. If False, includes only namespace declarations in the provided node.

Visual Basic Syntax

ObjNSManager.pushNodeContext(oIXMLDOMNode,[fDeep as Boolean=True]);  

Parameters

oIXMLDOMNode
An IXMLDOMNode object. A DOM node that specifies the context to use.

fDeep
Boolean. The default value is True. If True, pushes namespace declarations of parent nodes. If False, includes only namespace declarations in the provided node.

C/C++ Syntax

HRESULT pushNodeContext(  
    IXMLDONNode * oContextNode,  
    VARIANT_BOOL fDeep);  

Parameters

oContextNode[in]
The DOM node with context use.

fDeep[in,optional]
Boolean. The default value is True. If True, pushes namespace declarations of parent nodes. If False, includes only namespace declarations in the provided node.

Return Values

S_OK
The value returned if successful.

E_INVALIDARG
The value returned if the passed object is NULL.

E_FAIL
The value returned if an error occurs.

Remarks

The new local context is populated with namespace declarations from the context of the DOM node. The second parameter indicates whether deep context should be used. Deep context includes all namespace declarations from the node, and all parents of the node. Pushed declarations are still visible in the current context, unless they are replaced by new declarations.

Versioning

Implemented in: MSXML 4.0 and later

Applies to

IVBMXNamespaceManager

IMXNamespaceManager