PageRenderTime 32ms CodeModel.GetById 18ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. <?php
  2. function 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. }