DomNode->node_value

Returns value of a node ()
string DomNode->node_value ( )

说明

Returns value of the node. The value has different meanings for the different types of nodes as illustrated in the following table.

表 77. Meaning of value

TypeMeaning
DomAttributevalue of attribute
DomAttribute 
DomCDataSectioncontent
DomCommentcontent of comment
DomDocumentnull
DomDocumentTypenull
DomElementnull
DomEntitynull
DomEntityReferencenull
DomNotationnull
DomProcessingInstructionentire content without target
DomTextcontent of text