SYNOPSISstring xmlTreeGetAllContent(xmlNode node)
Parameters:
node
- the xmlNode
to get content from
Returns:
node
and all children
DESCRIPTIONxmlTreeGetAllContent()
gives the entire contents of this
node and its children nodes (if they exist). This is in contrast to
xmlTreeGetContent()
, which only returns the text of the element,
not its children.
xmlTreeGetAllContent()
can be handy for things like HTML data:
<div>This has <i>emphasis</i> in its text.</div>
Calling xmlTreeGetAllContent()
on the <div>
will give you
This has emphasis in its text.
where as xmlTreeGetContent()
would return
This has in its text
.
EXAMPLE<$content = (xmlTreeGetAllContent($node))>
SEE ALSOxmlTreeDumpNode
,
xmlTreeGetName
,
xmlTreeGetContent
,
xmlTreeGetLine
,
xmlTreeGetType
,
xmlTreeIsBlankNode
,
xmlTreeGetAttributeContent