string xmlReaderGetAllContent(xmlReader reader)
xmlReaderGetAllContent() gives the entire contents of this
element and its sub-elements. This is in contrast to
xmlReaderGetContent(), which only returns the text of the
element, not its children.
xmlReaderGetAllContent can be handy for HTML-like XML data:
This div has <b>a lot</b> of <i>emphasis</i> in its text.
xmlReaderGetAllContent() when the reader is on
<div> will give you
This div has a lot of emphasis in its text.
xmlReaderGetContent() would return
This div has of in its text.
<$content = (xmlReaderGetAllContent($reader))>
If you are on the opening of an element, the parser must read ahead, up to the closing of that element, in order to make sure it sees all the text nodes. In other words, if you're working with a 2GB XML file, you probably don't want to call
the root node.