|
|
|
|
.UnwrapAllChildren (Función) Elimina el nodo especificado en una Document HTML sin borrar sus hijos, que ocupan su lugar. hDoc is htmlDocument = " <html> <head/> <body> <h1></h1><div id="div"> <p>Text</p> <p>Texte2</p> </div><h3></h3> </body> </html> " hNode is htmlNode <- hDoc.ChercheElémentParID("div") hNodeInsert is htmlNode hNodeInsert..TagName = "h2" hNode.Wrap(hNodeInsert) // body: <h1/><h2><div id="div"><p>Text1</p><p>Text2</p></div></h2><h3/> Trace(hDoc) hNodeInsert..TagName = "span" hNode.WrapAllChildren(hNodeInsert) // body: <h1/><h2><div id="div"><span><p>Text1</p><p>Text2</p></span></div></h2><h3/> Trace(hDoc) hNode.UnwrapAllChildren(hNodeInsert) // body: <h1/><h2><span><p>Text1</p><p>Text2</p></span></h2><h3/>Trace(hDoc)
Sintaxis
<Node>.UnwrapAllChildren()
<Node>: htmlNode Variable Nombre de la htmlNode Variable que corresponde al nodo a eliminar. Clasificación Lógica de negocio / UI: Lógica de negocio Componente: wd290html.dll
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|