DomNode->node_value

(No version information available, might be only in CVS)

DomNode->node_value — Returns value of a node

Описание

string DomNode->node_value ( void )

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

Meaning of value
Type Meaning
DomAttribute value of attribute
DomAttribute  
DomCDataSection content
DomComment content of comment
DomDocument null
DomDocumentType null
DomElement null
DomEntity null
DomEntityReference null
DomNotation null
DomProcessingInstruction entire content without target
DomText content of text

[an error occurred while processing the directive]

Коментарии

Автор:
To get the contents of the node, which is for instance:

<a>this is a test</a>

To get the string: "this is a test" use:

// assuming dom is an actual xml-dom
$temp = $dom->get_elements_by_tagname("a");
foreach($temp as $nexta) {
   echo $nexta->get_content();
}

- Salman
http://www.setcomputing.com/
2003-10-01 20:42:49
http://php5.kiev.ua/manual/ru/function.domnode-node-value.html
In response to rsl at zonapersonal dot com

Or just make sure you set the right page encoding before you start hot fixing. 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Using anything else than Unicode is not really a good strategy anyway.
2008-04-07 11:05:42
http://php5.kiev.ua/manual/ru/function.domnode-node-value.html

    Поддержать сайт на родительском проекте КГБ