(PHP 5 >= 5.2.0)
XMLReader::readString — Reads the contents of the current node as an string
Reads the contents of the current node as an string.
Diese Funktion hat keine Parameter.
Returns the content of the current node as a string. Empty string on failure.
Diese Funktion ist nur verfügbar, wenn PHP mit libxml 20620 oder später kompiliert wurde.
For those who, like me, are having trouble figuring out the difference between getString() an getInnerXML(), the difference is that getString() does NOT include markup. So, for:
<foo>bar<baz>Hello, world!</baz></foo>
getString() on the <foo> node would return
bar Hello, world!
whereas getInnerXML() would return
bar<baz>Hello, world!</baz>