|
|
|
|
Elimina el nodo especificado y sus descendientes en un 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 <- HTMLFindElementByTag(hDoc, "h3") hNode <- hSearchNode[1] hNodeInsert..TagName = "div" HTMLInsertFirstChild(hNode, hNodeInsert) // body: <h1/><h2><span><p>Text</p></span></h2><h3><div/></h3> hNodeInsert..TagName = "span" HTMLInsertLastChild(hNode, hNodeInsert) // body: <h1/><h2><span><p>Text</p></span></h2><h3><div/><span/></h3> Trace(hDoc) HTMLRemove(hNode) // body: <h2><span><p>Text</p></span></h2> Trace(hDoc)
Sintaxis
HTMLRemove(<Node to remove>)
<Node to remove>: htmlNode Variable Nombre de la htmlNode Variable que corresponde al nodo a eliminar. Todos sus descendientes serán eliminados. Clasificación Lógica de negocio / UI: Lógica de negocio Componente: wd290html.dll
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|