ILSParserFilter.AcceptNode(INode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method will be called by the parser at the completion of the parsing of each node.
[Android.Runtime.Register("acceptNode", "(Lorg/w3c/dom/Node;)S", "GetAcceptNode_Lorg_w3c_dom_Node_Handler:Org.W3c.Dom.LS.ILSParserFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short AcceptNode (Org.W3c.Dom.INode? nodeArg);
[<Android.Runtime.Register("acceptNode", "(Lorg/w3c/dom/Node;)S", "GetAcceptNode_Lorg_w3c_dom_Node_Handler:Org.W3c.Dom.LS.ILSParserFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AcceptNode : Org.W3c.Dom.INode -> int16
Parameters
- nodeArg
- INode
The newly constructed element. At the time this method is called, the element is complete - it has all of its children (and their children, recursively) and attributes, and is attached as a child to its parent.
Returns
<ul>
<li> FILTER_ACCEPT
if this Node
should
be included in the DOM document being built.
</li>
<li>
FILTER_REJECT
if the Node
and all of its
children should be rejected.
</li>
<li> FILTER_SKIP
if the
Node
should be skipped and the Node
should be replaced by all the children of the Node
.
</li>
<li>
FILTER_INTERRUPT
if the filter wants to stop the
processing of the document. Interrupting the processing of the
document does no longer guarantee that the resulting DOM tree is
XML well-formed. The Node
is accepted and will be the
last completely parsed node.
</li>
</ul>
- Attributes
Remarks
This method will be called by the parser at the completion of the parsing of each node. The node and all of its descendants will exist and be complete. The parent node will also exist, although it may be incomplete, i.e. it may have additional children that have not yet been parsed. Attribute nodes are never passed to this function. <br>From within this method, the new node may be freely modified - children may be added or removed, text nodes modified, etc. The state of the rest of the document outside this node is not defined, and the affect of any attempt to navigate to, or to modify any other part of the document is undefined. <br>For validating parsers, the checks are made on the original document, before any modification by the filter. No validity checks are made on any document modifications made by the filter. <br>If this new node is rejected, the parser might reuse the new node and any of its descendants.
Java documentation for org.w3c.dom.ls.LSParserFilter.acceptNode(org.w3c.dom.Node)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.