PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/core/xml/utils.php

http://zoop.googlecode.com/
PHP | 19 lines | 19 code | 0 blank | 0 comment | 2 complexity | eb6f6a2885bbc73e54cd6111b3cfd1d2 MD5 | raw file
 1<?php
 2function XmlDisplayNode($node)
 3{
 4	echo '<ol>';
 5	$children = $node->getChildren();
 6	for($thisChild = $children->current(); $children->valid(); $thisChild = $children->next())
 7	{
 8		echo '<li>';
 9		echo 	$thisChild->getName();
10		if($thisChild->hasContent())
11		{
12			$content = $thisChild->getContent();
13			echo '(' . $content['content'] . ')';
14		}
15		XmlDisplayNode($thisChild);
16		echo '</li>';
17	}
18	echo '</ol>';
19}