I\'m parsing some XML with PHP DOM extension in order to store the data in some other form. Quite unsurprisingly, when I parse an element I pretty often need to obtain all c
simple iteration process
$parent = $p->parentNode; foreach ( $parent->childNodes as $pp ) { if ( $pp->nodeName == 'p' ) { if ( strlen( $pp->nodeValue ) ) { echo "{$pp->nodeValue}\n"; } } }