|
|
|
|
|
<htmlNode variable>.Remove (Function) In french: <Variable htmlNoeud>.Supprime Removes the specified node and its descendants in an HTML document. hDoc is htmlDocument = " <html> <head/> <body> <h2><span> <p>Text</p> </span></h2><h3></h3> </body> </html> " hNode is htmlNode // body: <div id="div"><p>Text</p></div> hNodeInsert is htmlNode hSearchNode is array of htmlNode <- hDoc.FindElementByTag("h3") hNode <- hSearchNode[1] hNodeInsert..TagName = "div" hNode.InsertFirstChild(hNodeInsert) // body: <h1/><h2><span><p>Text</p></span></h2><h3><div/></h3> hNodeInsert..TagName = "span" hNode.InsertLastChild(hNodeInsert) // body: <h1/><h2><span><p>Text</p></span></h2><h3><div/><span/></h3> Trace(hDoc) hNode.Remove() // body: <h2><span><p>Text</p></span></h2> Trace(hDoc)
Syntax
<Node to remove>.Remove()
<Node to remove>: htmlNode variable Name of the htmlNode variable that corresponds to the node to be removed. All of its descendants will be removed. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|