Skip to content

Commit

Permalink
added namespace support for ExtendedXMLIterator::childrenXML
Browse files Browse the repository at this point in the history
  • Loading branch information
tidal committed Mar 10, 2010
1 parent b0a18ee commit 65bb7c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ExtendedXMLIterator.php
Expand Up @@ -207,11 +207,12 @@ public function lastChild($namespace = false){
* @name childrenXML
* @access public
* @param mixed Root-Node name to wrap XML-String in or true to use default
* @param string namespace of the children
* @return string children as XML
*/
public function childrenXML($root_node = false){
public function childrenXML($root_node = false, $namespace = false){
$xml = '';
foreach($this->children() as $child){
foreach($this->children($namespace) as $child){
$xml .= $child->asXML();
}
return self::__wrapRootNode($xml, $root_node);
Expand Down

0 comments on commit 65bb7c9

Please sign in to comment.