/framework/core/xml/utils.php
PHP | 19 lines | 19 code | 0 blank | 0 comment | 2 complexity | eb6f6a2885bbc73e54cd6111b3cfd1d2 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
- <?php
- function XmlDisplayNode($node)
- {
- echo '<ol>';
- $children = $node->getChildren();
- for($thisChild = $children->current(); $children->valid(); $thisChild = $children->next())
- {
- echo '<li>';
- echo $thisChild->getName();
- if($thisChild->hasContent())
- {
- $content = $thisChild->getContent();
- echo '(' . $content['content'] . ')';
- }
- XmlDisplayNode($thisChild);
- echo '</li>';
- }
- echo '</ol>';
- }