Histórico da Página
| Composition Setup |
|---|
import.css=/download/attachments/6062824/tecnologia.css
|
...
| Pagetitle | ||||
|---|---|---|---|---|
|
Indica a quantidade de nós filhos do nó atual.
Sintaxe
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
nRet := DOMChildCount()
|
Retorno
Nome | Tipo | Descrição |
|---|---|---|
nRet | numérico | Quantidade de nós filhos do nó atual. |
Exemplos
| Bloco de código | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
user function TXChCnt() Local cXML := "" Local oXML oXML := TXMLManager():New() cXML += '<book isNew="true">' + CRLF cXML += ' <title>A Clash of Kings</title>' + CRLF cXML += ' <author>George R. R. Martin</author>' + CRLF cXML += ' <price>9.99</price>' + CRLF cXML += ' <origin>US</origin>' + CRLF cXML += '</book>' + CRLF if !oXML:Parse( cXML ) conout( "Errors on Parse!" ) return endif // Vai exibir "book" conout( oXML:CNAME ) // Vai exibir "4" conout( oXML:DOMChildCount() ) oXML:DOMChildNode() // Vai exibir "title" conout( oXML:CNAME ) // Vai exibir "0" conout( oXML:DOMChildCount() ) return |
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas